Checking whether an R output is really nice
Arguments
- x
An R object. Can be a list or vector, and values can be of type
numeric, double, or character.
Examples
x <- 23 * 3
check(x)
#> [1] "Nice!"
x <- c(1, 2, 3, 4, 5)
check(x)
#> [1] "Not very nice."
x <- c("ten", "twenty", "thirty", "sixty nine")
check(x)
#> [1] "Nice!"