Description Usage Arguments Author(s) References
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
1 | onExit(expr=NULL, where=c("first", "last", "replace"), ..., exits, envir=parent.frame())
|
expr |
An |
where |
A |
... |
Not used. |
exits |
(optional) Already recorded. |
envir |
The |
Henrik Bengtsson
[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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.