Displaying 1 result from an estimated 1 matches for "lastorigin".
Did you mean:
lastoriginal
2005 Jun 10
1
Exiting R and package detachment?
...detached/unloaded/R
quits). I am currently loading the settings in .First.lib() and have
code in .Last.lib() to save them.
Are there other ways to assure functions to be called when R quits? The
best I can think of now is to "hack" .Last() by doing something like
if (!exists(".LastOriginal", mode="function")) {
.LastOriginal <<- get(".Last", envir=.GlobalEnv);
.Last <<- function(..., envir=parent.frame()) {
for (fun in getHook(".Last")) {
if (is.character(fun))
fun <- get(fun, mode="function")...