Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Condition

Dependency Condition


Description

Condition object, to specify the condition in a dependency.

Currently implemented simple conditions

  • CondEqual$new(rhs)
    Parent must be equal to rhs.

  • CondAnyOf$new(rhs)
    Parent must be any value of rhs.

Public fields

type

(character(1))
Name / type of the condition.

rhs

(any)
Right-hand-side of the condition.

Methods

Public methods


Method new()

Creates a new instance of this R6 class.

Usage
Condition$new(type, rhs)
Arguments
type

(character(1))
Name / type of the condition.

rhs

(any)
Right-hand-side of the condition.


Method test()

Checks if condition is satisfied. Called on a vector of parent param values.

Usage
Condition$test(x)
Arguments
x

(vector()).

Returns

logical(1).


Method as_string()

Conversion helper for print outputs.

Usage
Condition$as_string(lhs_chr = "x")
Arguments
lhs_chr

(character(1))


Method format()

Helper for print outputs.

Usage
Condition$format()

Method print()

Printer.

Usage
Condition$print(...)
Arguments
...

(ignored).


Method clone()

The objects of this class are cloneable with this method.

Usage
Condition$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


paradox

Define and Work with Parameter Spaces for Complex Algorithms

v0.7.1
LGPL-3
Authors
Michel Lang [cre, aut] (<https://orcid.org/0000-0001-9754-0393>), Bernd Bischl [aut] (<https://orcid.org/0000-0001-6002-6980>), Jakob Richter [aut] (<https://orcid.org/0000-0003-4481-5554>), Xudong Sun [aut] (<https://orcid.org/0000-0003-3269-2307>), Martin Binder [aut], Marc Becker [ctb] (<https://orcid.org/0000-0002-8115-0400>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.