Check whether a picks object contains at least one element of the given
class ("datasets", "variables", or "values").
Usage
check_picks(x, datasets = TRUE, variables = FALSE, values = FALSE)
assert_picks(
x,
datasets = TRUE,
variables = FALSE,
values = FALSE,
.var.name = checkmate::vname(x),
add = NULL
)Arguments
- x
picksobject- datasets
(
logical(1)) whether to check for the presence of adatasetselement.- variables
(
logical(1)) whether to check for the presence of avariableselement- values
(
logical(1)) whether to check for the presence of avalueselement- .var.name
[
character(1)]
The custom name forxas passed to anyassert*function. Defaults to a heuristic name lookup.- add
[
AssertCollection]
Collection to store assertion messages. SeeAssertCollection.