getOption: A slightly modified version of getOption

Description Usage Arguments

Description

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

Usage

1
.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.


SpaDES.core documentation built on Sept. 30, 2021, 5:10 p.m.