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 Nov. 10, 2023, 5:08 p.m.