[R] Automatically execute traceback when execution of script causes error?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Mar 6 10:18:05 CET 2009
On Fri, 6 Mar 2009, Rainer M Krug wrote:
> Hi
>
> I am using R scripts which are running remotely. To make debugging
> easier, I would like to have the possibility to execute traceback()
> automatically when an error occurs. Is this possible?
See options 'error' and 'showErrorCalls'. The latter is the default
in batch use of R, and its compact traceback is found to be sufficient
by many of us. If 'remotely' means interactively, consider
options(error=recover).
It might help to review section 4.2 of 'Writing R Extensions'.
>
> OS: Linux
>
> Thanks
>
> Rainer
>
> --
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
> Biology, UCT), Dipl. Phys. (Germany)
>
> Centre of Excellence for Invasion Biology
> Faculty of Science
> Natural Sciences Building
> Private Bag X1
> University of Stellenbosch
> Matieland 7602
> South Africa
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list