Learn R Programming

paradox (version 0.7.1)

assert_param: Assertions for Params and ParamSets

Description

Assertions for Params and ParamSets

Usage

assert_param(param, cl = "Param", no_untyped = FALSE, must_bounded = FALSE)

assert_param_set( param_set, cl = "Param", no_untyped = FALSE, must_bounded = FALSE, no_deps = FALSE )

Arguments

param
cl

(character()) Allowed subclasses.

no_untyped

(logical(1)) Are untyped Params allowed?

must_bounded

(logical(1)) Only bounded Params allowed?

param_set
no_deps

(logical(1)) Are dependencies allowed?

Value

The checked object, invisibly.