test_inputs | R Documentation |
This function provides a selection of potentially problematic inputs by
class. List inputs are very limited by design, as they can be automatically
generated by setting listify_what = TRUE
in fuzz.
test_inputs(use = "all", skip = "")
use |
Names of input classes to use. Valid names are "all" (default), "scalar", "numeric", "integer", "logical", "character", "factor", "data.frame", "matrix", "array", "date", "raw" and "list". A vector of valid classes can be retrieved programmatically by setting this argument to "help". |
skip |
Names of input classes to skip. |
A named list of inputs corresponding to the input classes selected, or
a character vector of valid input classes if use = "help"
.
fuzz
## only the scalar and numeric tests
inputs1 <- test_inputs(use = c("scalar", "numeric"))
## everything but the data, raw and list tests
inputs2 <- test_inputs(skip = c("date", "raw", "list"))
## print the valid input classes
test_inputs("help")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.