Learn R Programming

SpaDES.core (version 2.0.5)

.getOption: A slightly modified version of getOption()

Description

This can take x as a character string or as a function that returns a character string.

Usage

.getOption(x, default = NULL)

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.