1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/logger.R
\name{ftry}
\alias{ftry}
\title{Wrap a try block in futile.logger}
\usage{
ftry(expr, error = stop, finally = NULL)
}
\arguments{
\item{expr}{The expression to evaluate in a try block}
\item{error}{An error handler}
\item{finally}{Pass-through to tryCatch finally}
}
\description{
This function integrates futile.logger with the error and warning system
so problems can be caught both in the standard R warning system, while
also being emitted via futile.logger.
}
\examples{
ftry(log(-1))
}
\author{
Brian Lee Yung Rowe
}
\keyword{data}
|