Re: [Rcpp-devel] Catching parse errors with RInside::parseEval()

2012-10-10 Thread Dirk Eddelbuettel
Hi Theodore, On 11 October 2012 at 00:39, Theodore Lytras wrote: | I studied RInside.cpp, made a few trial-and-error tests, and it appears to | work for me now - parseEval() doesn't crash when fed with syntactically | incorrect R code. | | I am attaching a patch I made with quilt (interactive.

Re: [Rcpp-devel] Catching parse errors with RInside::parseEval()

2012-10-10 Thread Theodore Lytras
Στις Τετ 10 Οκτ 2012, ο/η Dirk Eddelbuettel έγραψε: > There is a boolean in RInside.cpp that you need to flip. Eventually, we > could (if it is useful) support a flag at instantiation of the RObject. [snip] > | I browsed the code, and a few lines down I see: > | > | case PARSE_ERROR: > |Rf_er

Re: [Rcpp-devel] Catching parse errors with RInside::parseEval()

2012-10-10 Thread Dirk Eddelbuettel
On 10 October 2012 at 12:30, Theodore Lytras wrote: | 2012/10/10 Dirk Eddelbuettel : | [snip] | > On 10 October 2012 at 02:30, Theodore Lytras wrote: | > | However, if the R code passed to parseEval() contains syntax errors, my | > | application crashes with an error ("Error: Parse Error: . | > |

Re: [Rcpp-devel] Catching parse errors with RInside::parseEval()

2012-10-10 Thread Theodore Lytras
2012/10/10 Dirk Eddelbuettel : [snip] > On 10 October 2012 at 02:30, Theodore Lytras wrote: > | However, if the R code passed to parseEval() contains syntax errors, my > | application crashes with an error ("Error: Parse Error: . > | Execution halted"). [snip] > I looked at that recently. The main

Re: [Rcpp-devel] Catching parse errors with RInside::parseEval()

2012-10-09 Thread Dirk Eddelbuettel
Hi Theodore, On 10 October 2012 at 02:30, Theodore Lytras wrote: | Hello all, | | I am using RInside in my application to execute some R code with parseEval() | and parseEvalQ(). | | However, if the R code passed to parseEval() contains syntax errors, my | application crashes with an error ("

[Rcpp-devel] Catching parse errors with RInside::parseEval()

2012-10-09 Thread Theodore Lytras
Hello all, I am using RInside in my application to execute some R code with parseEval() and parseEvalQ(). However, if the R code passed to parseEval() contains syntax errors, my application crashes with an error ("Error: Parse Error: . Execution halted"). I tried putting the parseEval() call