50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

R.utils (version 1.9.3)

addFinalizerToLast: Modifies .Last() to call 'finalizeSession()

Description

Modifies .Last() to call 'finalizeSession() before calling the default .Last() function. Note that .Last() is not guaranteed to be called when the Rsession finished. For instance, the user may quit Rby calling quit(runLast=FALSE) or run R in batch mode. Note that this function is called when the R.utils package is loaded.

Usage

## S3 method for class 'default':
addFinalizerToLast(...)

Arguments

...
Not used.

Value

  • Returns (invisibly) TRUE if .Last() was modified, otherwise FALSE.

See Also

onSessionExit().