[R] run R under linux

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed Oct 22 09:18:54 CEST 2003


On Wed, 22 Oct 2003, Zhen Pang wrote:

> Thank you for your help. But try() seems to only allow for an expression. My
> simulation have serveral expressions which possibly have problem. Is there
> any possibility to include them all in the try()? If not, I seem to use
> several try().

{line1
line2
line3}

*is* a single expression.

As in the example on the help page for try, you can also wrap the
computation in a function call, and that is usually a good idea.

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list