Description Usage Arguments Details Value
This function can be used if you would like to test if an object satisfies a bunch of criteria.
1 2 3 | is_testing(obj, .is = NULL, .is_criteria = c("any", "all"),
.is_not = NULL, .length = NULL, .env = parent.frame(),
.loop = FALSE)
|
obj |
The object to be tested |
.is |
A vector with the specification of what to test. Note
that this should be the part after the |
.is_criteria |
One of the values |
.is_not |
Similar to |
.length |
An integer that can be used to specify the length
|
.env |
The environment in which the testing should be done.
The default value is |
.loop |
A logical argument, default |
WARNING: This function, in it's present incarnation, might need some of its arguments quoted if it's going to be used together with e.g. 'vapply'. It might thus be preferable to adjust the setup so it can investigate vectors and lists itself. I think that task should be feasible, but it might require an additional argument to do this (that is to say, an argument that can be used when the function calls itself iteratively).
The result will be TRUE
or FALSE
depending on
whether or not the specified criteria turned out to be
satisfied or not. Diagnostic attributes will be added to the
result in order to produce error-messages if that should be of
interest.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.