Re: [R] Run Rscript and ignore errors?

2015-04-26 Thread Nick Matzke
On Sun, Apr 26, 2015 at 1:39 PM, Adams, Jean wrote: > Nick, > > I don't know of a way to do what you want ... tell R to ignore all errors > ... but, I do have a suggestion. > > Since you regard these errors as "non-essential", why not edit your code > to reflect that? For example, instead of wri

Re: [R] Run Rscript and ignore errors?

2015-04-26 Thread Adams, Jean
Nick, I don't know of a way to do what you want ... tell R to ignore all errors ... but, I do have a suggestion. Since you regard these errors as "non-essential", why not edit your code to reflect that? For example, instead of writing plot(df$x1, df$y1) write if ("x1" %in% names(df) &

Re: [R] run Rscript and ignore errors?

2015-04-24 Thread Nick Matzke
Hi, Thanks so much for the hints, I think I've cracked it! The key is to create a dummy function, "continue_on_error" which gets run instead of "stop" when an error occurs, then reference it with options(error=continue_on_error). Here's an example: == continue_on_error

Re: [R] run Rscript and ignore errors?

2015-04-24 Thread Jue Lin-Ye
Jeff Newmiller dcn.davis.ca.us> writes: > > This seems like a recipe for garbage results to me, but there may be I something you can set the error option > to. See ?options. > --- > Jeff NewmillerThe

Re: [R] run Rscript and ignore errors?

2015-04-24 Thread Jeff Newmiller
This seems like a recipe for garbage results to me, but there may be I something you can set the error option to. See ?options. --- Jeff NewmillerThe . . Go Live... DCN:Basics

[R] Run Rscript and ignore errors?

2015-04-23 Thread Nick Matzke
Hi R-help, I've looked at google, the Rscript documentation and the Rscript --help output and haven't found much on this. So, here's my question: I have a rather long script that runs on various input datasets. It is quite convenient to run the script from the Terminal command line with "Rscrip

[R] run Rscript and ignore errors?

2015-04-23 Thread Nick Matzke
Hi R-help, I've looked at google, the Rscript documentation and the Rscript --help output and haven't found much on this. So, here's my question: I have a rather long script that runs on various input datasets. It is quite convenient to run the script from the Terminal command line with "Rscrip