optional: optional

View source: R/utils_isContentTruthy.R

optionalR Documentation

optional

Description

Fill optional arguments of a function if the given argument comes to be not truthy (e.g. by getting it after a script execution and passing it to a function).

Usage

optional(x, default = NULL, quiet = FALSE)

Arguments

x

value provided for the argument

default

default value (e.g. character()) in case option is invalid.


earnaud/MetaShARK-v2 documentation built on Sept. 21, 2022, 10:52 a.m.