opts: Check option value.

optsR Documentation

Check option value.

Description

This is a list that will populate dynamically with the options in the project local .Rprofile allowing them to be read by calling the method. This population of methods happens at the beginning of a session. It can be accessed with UU::opts. If you wish to check option values in non-interactive sessions, see the write_opts function which will write a file with an opts object based on the current state of .Rprofile that can be used during non-interactive (deployed apps) sessions.

Usage

opts\$your_option_name()

Arguments

default

if the specified option is not set in the options list, this value is returned. This facilitates retrieving an option and checking whether it is set and setting it separately if not.

Format

An object of class NULL of length 0.

Value

lgl

See Also

write_opts Code is dynamically generated when package is loaded. These will not auto generate properly in a deployed shiny app. See write_opts for a non-interactive alternative.

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


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