Re: [Rd] How can I catch errors thrown from c via the Rcpperror() function?

2009-04-16 Thread Kieran O'Neill
tern = stop("Oops"), "wxyz") : Oops where one might expect an error message regarding the wrongly named argument, as in: > grep(mypattern="x", "wxyz") Error in grep(mypattern = "x", "wxyz") : unused argument(s) (mypattern =

[Rd] How can I catch errors thrown from c via the Rcpp error() function?

2009-04-15 Thread Kieran O'Neill
Hi I am using the flowClust package from BioConductor, which is largely implemented in c. For some of my data, the package occasionally (and quite stochastically) encounters a particular condition which halts its operation. At this point, it calls the error() function defined by Rcpp, and hal