[R] Running an error-prone R script using 'source' command

jim holtman jholtman at gmail.com
Thu Aug 13 13:59:30 CEST 2009


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?




More information about the R-help mailing list