assert_param

0th

Percentile

Assertions for Params and ParamSets

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.

Aliases
  • assert_param
  • assert_param_set
Documentation reproduced from package paradox, version 0.1.0, License: LGPL-3

Community examples

Looks like there are no examples yet.