On Sun, Apr 26, 2015 at 1:39 PM, Adams, Jean jvad...@usgs.gov 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,
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) y1
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...
Jeff Newmiller jdnewmil at 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 Newmiller
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 -
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
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
7 matches
Mail list logo