This function saves the current R session information, including installed packages, session details, and optionally, information about specific objects in the session, to a text file.
Usage
SaveSessionInfo(Path = getwd(), SessionObj = NULL, Prefix = "S")
Arguments
- Path
string specifying the directory path where the output file should be saved. The default is the current working directory (base::getwd).
- SessionObj
An optional list of objects to include in the session information output. This is typically the result of a session management function like SaveSession. If provided, details of these objects (excluding functions and pre-selected objects, with sizes in megabytes) are appended to the session information file.
- Prefix
A string to be used as a prefix for the output file name. The default prefix is
S
.