[R] Sweave and optional document sections

2017-01-26 Thread Kyle Covington
I was just trying to do this and I think I have a reasonable solution that seems to be working well. In the main document you can include a chunk with a logical section: <>= if(T){ {sink("/dev/null"); Sweave(’subsection.Rnw'); sink(); }

[R] devSVG error

2011-03-13 Thread Kyle Covington
I was using devSVG to save plots of trees using the RSVGDevice package for devSVG and tree package for the trees. When I put text into the plot, obviously there are and symbols. These seem to be corrupting the svg file which is XML and makes use of for syntax. Is there any way around this,

[R] getDLLVersion

2010-09-29 Thread Kyle Covington
Hi, I'm just learning to write R extensions in C and to embed R in C. I was trying to get through the example in the help page on calling the .dll directly ( http://cran.r-project.org/doc/manuals/R-exts.html#Calling-R_002edll-directly ). When I compile I consistently get the error that

[R] R Extensions getDLLVersion

2010-09-28 Thread Kyle Covington
Hi, I'm just learning to write R extensions in C and to embed R in C. I was trying to get through the example in the help page on calling the .dll directly ( http://cran.r-project.org/doc/manuals/R-exts.html#Calling-R_002edll-directly ). When I compile I consistently get the error that