toggle: Toggle or change an option listed in a local _.Rprofile_ for...

toggleR Documentation

Toggle or change an option listed in a local .Rprofile for the session

Description

Any options in the project local .Rprofile will populate this object as named methods. These named methods, when called, will toggle the options on or off. Alternatively, if an option is not logical, it can be changed using the set argument. This loads at the start of an R session if startup has been called in the user-level .Rprofile. These methods are meant for interactive use only.

Usage

toggle\$your_logical_option_name()

toggle\$your_non_logical_option_name(set = "value")

Arguments

opt

chr option name to toggle. Dynamically populated

set

obj value to set the option to (takes precedence over toggle)

Format

An object of class NULL of length 0.

Value

msg to inform user of what the option is set to

See Also

Other options: if_debug(), opts, write_opts()


yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.