Skip to content
Prev 39415 / 63424 Next

hook for when R quits

See onSessionExit() in the R.utils package, e.g.

onSessionExit(function(...) {
  cat("Bye bye world!\n");
})

quit();

Please pay attention to the Details section of help(onSessionExit);
there are ways that R can exit that will not be detected/handled.

/Henrik

On Fri, Mar 11, 2011 at 10:37 AM, Michael Lawrence
<lawrence.michael at gene.com> wrote: