paradox (version 0.1.0)

Condition: Dependency Condition

Description

Condition object, to specify the condition in a dependency.

Arguments

Format

R6::R6Class object.

Construction

c = Condition$new(type, rhs)
  • type :: character(1) Name / type of the condition.

  • rhs::any Right-hand-side of the condition.

Methods

  • test(function(x)) ??? -> logical(n) Checks if condition is satisfied. Called on a vector of parent param values.

Currently implemented simple conditions

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

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