getOption: A slightly modified version of 'getOption()'

.getOptionR Documentation

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.


SpaDES.core documentation built on June 22, 2024, 10:32 a.m.