R/try.r
try_default.Rd
try_default wraps try so that it returns a default value in the case of error. tryNULL provides a useful special case when dealing with lists.
try_default
tryNULL
try_default(expr, default, quiet = FALSE) tryNULL(expr)
expression to try
default value in case of error
should errors be printed (TRUE) or ignored (FALSE, default)
tryapply