Condition object, to specify the condition in a dependency.
CondEqual$new(rhs)
Parent must be equal to rhs
.
CondAnyOf$new(rhs)
Parent must be any value of rhs
.
type
(character(1)
)
Name / type of the condition.
rhs
(any
)
Right-hand-side of the condition.
type
(character(1)
)
Name / type of the condition.
rhs
(any
)
Right-hand-side of the condition.
test()
Checks if condition is satisfied. Called on a vector of parent param values.
Condition$test(x)
x
(vector()
).
logical(1)
.
as_string()
Conversion helper for print outputs.
Condition$as_string(lhs_chr = "x")
lhs_chr
(character(1)
)
...
(ignored).
...
(ignored).
clone()
The objects of this class are cloneable with this method.
Condition$clone(deep = FALSE)
deep
Whether to make a deep clone.