Skip to contents

Generate any R object. This doesn't actually generate any possible object, just the most common ones, namely atomic vectors, lists, data.frames, tibbles, data.tables, and undefined values like NA, NULL, Inf, and NaN.

Usage

anything(any_empty = TRUE, any_undefined = TRUE)

Arguments

any_empty

Whether empty vectors or data frames should be allowed.

any_undefined

Whether undefined values should be allowed.

Value

A quickcheck_generator object.

Examples

anything() %>% show_example()
#> [[1]]
#> [1] "2940-07-05"
#> 
#> [[2]]
#> 05:01:13.192444
#> 
#> [[3]]
#> [1] -914490877
#> 
#> [[4]]
#> [1] n
#> Levels: n
#> 
#> [[5]]
#> [1] -174479700
#> 
#> [[6]]
#> [1] I
#> Levels: I
#>