Condition object, to specify the condition in a dependency.
condition_test(cond, x)condition_as_string(cond, lhs_chr = "x")
Condition(rhs, condition_format_string)
(Condition
)
Condition
to use
(any
)
Value to test
(character(1)
)
Symbolic representation to use for <lhs>
in the returned string.
(any
)
Right-hand-side of the condition.
(character(1)
)
Format-string for representing the condition when pretty-printing
in condition_as_string()
.
Should contain two %s
, as it is used in an sprintf()
-call with
two further string values.
condition_test()
: Used internally. Tests whether a value satisfies a given condition.
Vectorizes when x
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}"
.
CondEqual(rhs)
Value must be equal to rhs
.
CondAnyOf(rhs)
Value must be any value of rhs
.