Nir Shachaf
2009-Aug-13 07:21 UTC
[R] Running an error-prone R script using 'source' command
Hi All, I am running a semi-stable algorithms from an R script file using 'source'. At a certain point one of the algorithms will most probably return an error and crash the run. What I would like to do is to make [R] keep running and just skip to the next command line in the external script file... I have tried using 'try' 'tryCatch' blocks and 'dump.frames' without success. Thanks, Nir
jim holtman
2009-Aug-13 11:59 UTC
[R] Running an error-prone R script using 'source' command
What do you mean "without success"? Can you provide specifics. They work fine for me. You need to give details of how you are using it in your script and what conditions you see that make you think it is not working. On Thu, Aug 13, 2009 at 3:21 AM, Nir Shachaf<nirshachaf at gmail.com> wrote:> Hi All, > > I am running a semi-stable algorithms from an R script file using 'source'. > > At a certain point one of the algorithms will most probably return an error > and crash the run. > > What I would like to do is to make [R] keep running and just skip to the > next command line in the external script file... > > I have tried using 'try' 'tryCatch' blocks and 'dump.frames' without success. > > Thanks, > Nir > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve?
Apparently Analagous Threads
- un run run...
- source, sys.source and error line numbers
- data frame is killing me! help
- How to formulate quadratic function with interaction terms for the PLS fitting model?
- How to formulate quadratic function with interaction terms for the PLS fitting model?