Skip to contents

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

(Param).

cl

(character())
Allowed subclasses.

no_untyped

(logical(1))
Are untyped Params allowed?

must_bounded

(logical(1))
Only bounded Params allowed?

param_set

(ParamSet).

no_deps

(logical(1))
Are dependencies allowed?

Value

The checked object, invisibly.