Displaying 2 results from an estimated 2 matches for "print2buff".
2016 Jan 04
1
deparse with parentheses for SUBSET
...(x * y)[1]"=(x * y)[1])
The following simple fix solves the problem for me:
diff -u -r A/src/main/deparse.c B/src/main/deparse.c
--- R-devel 2/src/main/deparse.c	2015-08-09 18:09:04.000000000 +0200
+++ R-devel/src/main/deparse.c	2016-01-04 16:15:09.000000000 +0100
@@ -971,7 +971,11 @@
 		    print2buff(")", d);
 		    break;
 		case PP_SUBSET:
+		    if ((parens = needsparens(fop, CAR(s), 1)))
+			print2buff("(", d);
 		    deparse2buff(CAR(s), d);
+		    if (parens)
+			print2buff(")", d);
 		    if (PRIMVAL(SYMVALUE(op)) == 1)
 			print2buff("[", d);...
2008 Aug 06
1
RGtk2 on linux: "stack smashing detected"
Yea I am aware of this. This is because the Ubuntu binary has stack smashing
detection enabled. It's possible to build R without this checking:
export CFLAGS="-fno-stack-protector"
I have not been able to figure out why stack smashing is detected.  I'm
cc'ing this to r-devel in case anyone else has an idea.
Michael
On Wed, Aug 6, 2008 at 12:31 AM, Felix Andrews