used within other functions to specify a command to be run when exiting the parent function (e.g. using to restore settings for plotting parameters)
scatterBox <- function(x, y, ...){
opar <- par("mfrow", "mar")
on.exit(par(opar))
...
}
viewed on http://www.rfunction.com