Missing is functions.

is.error(x)

is.time(x)

is.date(x)

Arguments

x

object to test

See also

Other assertions: are_equal, is.scalar, noNA, not_empty

Examples

a <- Sys.time()
is.time(a)
#> [1] TRUE
b <- Sys.Date()
is.date(b)
#> [1] TRUE
c <- try(stop("!!"))
#> Error in try(stop("!!")) : !!
is.error(c)
#> [1] TRUE