search for: option0

Displaying 1 result from an estimated 1 matches for "option0".

Did you mean: option
2008 Feb 12
3
matching last argument in function
I often want to temporarily modify the options() options, e.g. a <- seq(10000001, 10000001 + 10) # some wide object with.options <- function(..., expr) { options0 <- options(...) tryCatch(expr, finally=options(options0)) } Then I can use: with.options(width=160, expr = print(a)) But I'd like to avoid explicitly naming the expr argument, as in: with.options(width=160,