option_read: Get the value of an option

View source: R/utils.R

option_readR Documentation

Get the value of an option

Description

Basically a getOptions() that fails fast by default.

Usage

option_read(x, default = NULL, error_if_not_found = TRUE)

Arguments

x

a character string holding an option name.

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.

error_if_not_found

Whether or not an error should be returned if the option was not set.


styler documentation built on Aug. 29, 2023, 5:10 p.m.