Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

option_read

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

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.