Learn R Programming

assertthat (version 0.2.1)

assert-is: Missing is functions.

Description

Missing is functions.

Usage

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

Run this code
# NOT RUN {
a <- Sys.time()
is.time(a)
b <- Sys.Date()
is.date(b)
c <- try(stop("!!"))
is.error(c)
# }

Run the code above in your browser using DataLab