Initializing help system before first use

Rsessionmode

Description
Specifies what actions are taken at the end of an R session.
Type
Integer, read/write
Values
0 
END: the R session is ended.
1 
KEEP: the R session is kept alive and the current R workspace is preserved.
2 
CLEAR: the R session is kept alive and the Rcleanscript is executed.
3 
UNLOAD: both the Rcleanscript and Runloadscript are executed, then R is unloaded.
Default value
2
Notes
This parameter is useful mainly when multiple Mosel models that use R are executed within the same process.
When an R session is ended, R does not allow the creation of further sessions, therefore R will not be usable again within the same process.
Session mode 3, by unloading R, should enable the possibility to create new R sessions within the same process, however it may not completely free all resources allocated by R.
Affects routines
Module
R