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.
new()
Creates a new instance of this R6 class.
Condition$new(type, rhs)
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)
)
format()
Helper for print outputs.
Condition$format()
print()
Printer.
Condition$print(...)
...
(ignored).
clone()
The objects of this class are cloneable with this method.
Condition$clone(deep = FALSE)
deep
Whether to make a deep clone.