methods-deprecated {methods} | R Documentation |
These functions are provided for compatibility with older versions of R only, and may be defunct as soon as the next release.
trySilent(expr)
expr |
an R expression to try. |
The original help page for these functions is often
available at help("oldName-deprecated")
(note the quotes).
Functions in packages other than the methods package are listed in
help("pkg-deprecated")
.
trySilent(ex)
is a deprecated equivalent of try(e,
silent=TRUE)
; in R programming it is typically more efficient and
flexible to work with something like tryCatch(ex,
error = function(e) e)
instead.