onExit: Records expressions to be executed when the current function...

Description Usage Arguments Author(s) References

View source: R/onExit.R

Description

Records expressions to be executed when the current function exits (regardless of cause). This method differ from on.exit() in that it adds the option to prepend an expression to already existing expressed, as an alternative to the default append.

WARNING: This function is still under development [1,2]. /HB 2013-11-08

Usage

1
onExit(expr=NULL, where=c("first", "last", "replace"), ..., exits, envir=parent.frame())

Arguments

expr

An expression to be recorded.

where

A character string specifying whether the expression should be prepended ("first"), appended ("last"), or replace already recorded expressions ("replace").

...

Not used.

exits

(optional) Already recorded.

envir

The environment in which expressions are recorded.

Author(s)

Henrik Bengtsson

References

[1] R-devel thread 'WISHLIST: on.exit(..., add=TRUE, where="first") to address common use cases', 2013-11-03. https://stat.ethz.ch/pipermail/r-devel/2013-November/067876.html
[2] R-devel thread 'on.exit() & sys.on.exit(): Calling them via eval() does not work as hoped', 2013-11-03. https://stat.ethz.ch/pipermail/r-devel/2013-November/067866.html


HenrikBengtsson/aroma.seq documentation built on Feb. 15, 2021, 2:21 a.m.