Learn R Programming

startup (version 0.22.0)

startup_session_options: Record R session information as options

Description

Record R session information as options

Usage

startup_session_options(action = c("update", "overwrite", "erase"))

Value

Returns invisibly a named list of the options prefixed "startup.session.":

startup.session.startdir

(character) the working directory when the startup was first loaded. If startup::startup() is called at the very beginning of the .Rprofile file, this is also the directory that the current R session was launched from.

startup.session.starttime

(POSIXct) the time when the startup was first loaded.

startup.session.id

(character) a unique ID for the current R session.

startup.session.dumpto

(character) a session-specific name that can be used for argument dumpto of dump.frames() (also for dumping to file).

Arguments

action

If "update" or "overwrite", R options "startup.session.*" are set. If "update", then such options that are not already set are updated. If "erase", any existing "startup.session.*" options are removed.

Examples

Run this code
opts <- startup::startup_session_options()
opts

Run the code above in your browser using DataLab