Re: [Rd] Question on parsing R code from C

2011-11-15 Thread Simon Urbanek
On Nov 15, 2011, at 5:39 PM, KR wrote: > Simon Urbanek r-project.org> writes: >> AFAIR you have to evaluate parse(text=...) for that, there is no C-level > access to parser errors. > > Yes that did it, thanks! > >> If you get a crash, you're not setting up you R correctly. If your R quits >

Re: [Rd] When collected warnings exceeds 50

2011-11-15 Thread Jeffrey Horner
On Thu, Nov 10, 2011 at 11:00 PM, Jeffrey Horner wrote: > On Thu, Nov 10, 2011 at 10:54 PM, Jeffrey Horner > wrote: >> Hi, >> >> I've been tracking down a memory leak in an rApache application, >> http://data.vanderbilt.edu/rapache/bbplot. The code was deployed in >> 2007 and has survived numerou

Re: [Rd] Question on parsing R code from C

2011-11-15 Thread KR
Simon Urbanek r-project.org> writes: > AFAIR you have to evaluate parse(text=...) for that, there is no C-level access to parser errors. Yes that did it, thanks! > If you get a crash, you're not setting up you R correctly. If your R quits then you are in non-interactive mode > and you didn't

Re: [Rd] Small nit in Sweave

2011-11-15 Thread Marc Schwartz
On Nov 15, 2011, at 1:10 PM, Terry Therneau wrote: > Two small Sweave issues. > > 1. I had the following line in my code > <> > > resulting in the message > Error in match.arg(options$results, c("verbatim", "tex", "hide")) : > 'arg' should be one of “verbatim”, “tex”, “hide” > > I puzzled

[Rd] Small nit in Sweave

2011-11-15 Thread Terry Therneau
Two small Sweave issues. 1. I had the following line in my code <> resulting in the message Error in match.arg(options$results, c("verbatim", "tex", "hide")) : 'arg' should be one of “verbatim”, “tex”, “hide” I puzzled on this a bit since my argument exactly matched the message, until I