Skip to content
Prev 258154 / 398502 Next

setting options only inside functions

There is probably a more elegant way to do this, but you could write
it into dummy1():

dummy1 <- function()
{
...original function
options(old.options)
}

Alternatively, you could use ?tryCatch with the finally argument as a
call to options.

HTH,
Jon
On Wed, Apr 27, 2011 at 9:16 AM, Jannis <bt_jannis at yahoo.de> wrote: