condition_test {paradox} | R Documentation |
Dependency Condition
Description
Condition object, to specify the condition in a dependency.
Usage
condition_test(cond, x)
condition_as_string(cond, lhs_chr = "x")
Condition(rhs, condition_format_string)
Arguments
cond |
( |
x |
( |
lhs_chr |
( |
rhs |
( |
condition_format_string |
( |
Functions
-
condition_test()
: Used internally. Tests whether a value satisfies a given condition. Vectorizes whenx
is atomic. -
condition_as_string()
: Used internally. Returns a string that represents the condition for pretty printing, in the form"<lhs> <relation> <rhs>"
, e.g."x == 3"
or"param %in% {1, 2, 10}"
.
Currently implemented simple conditions
-
CondEqual(rhs)
Value must be equal torhs
. -
CondAnyOf(rhs)
Value must be any value ofrhs
.