Learn R Programming

quickcheck (version 0.1.3)

anything: Any R object generator

Description

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)

Value

A quickcheck_generator object.

Arguments

any_empty

Whether empty vectors or data frames should be allowed.

any_undefined

Whether undefined values should be allowed.

Examples

Run this code
anything() %>% show_example()

Run the code above in your browser using DataLab