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 | Rfree.
Module | R

Parent Topic Control parameters

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.