inst/jobs-stub/src/onFinally.R

####################################################################
# There is a risk, although small, that the job is interrupted
# or that an error occurs while running. Regardless of if the job
# was successful, an interrupt or an error occured, the
# onFinally() function will always be called.
####################################################################
onFinally <- function(...) {
  # Clean up, e.g. close open devices, connections etc.
}

Try the R.batch package in your browser

Any scripts or data that you put into this service are public.

R.batch documentation built on May 2, 2019, 4:58 p.m.