getRequirements: Return all require-expressions of a param set.

View source: R/getRequirements.R

getRequirementsR Documentation

Return all require-expressions of a param set.

Description

Returns all requires-objects of a param set as a list.

Usage

getRequirements(par.set, remove.null = TRUE)

Arguments

par.set

ParamSet
Parameter set.

remove.null

(logical(1))
If not set, params without a requires-setting will result in a NULL element in the returned list, otherwise they are removed. Default is codeTRUE.

Value

xnamed list. Named list of require-call-objects, lengths corresponds to number of params (potentially only the subset with requires-field), named with with param ids.


ParamHelpers documentation built on July 4, 2022, 5:07 p.m.