[go: up one dir, main page]

File: ftry.Rd

package info (click to toggle)
r-cran-futile.logger 1.4.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 208 kB
  • sloc: sh: 9; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 628 bytes parent folder | download | duplicates (3)
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}