| assert-is {assertthat} | R Documentation |
Missing is functions.
is.error(x) is.time(x) is.date(x)
x |
object to test |
Other assertions: are_equal;
is.count, is.flag,
is.number, is.scalar,
is.string; noNA;
not_empty
a <- Sys.time()
is.time(a)
b <- Sys.Date()
is.date(b)
c <- try(stop("!!"))
is.error(c)