File: assert-is.Rd

package info (click to toggle)
r-cran-assertthat 0.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 220 kB
  • sloc: sh: 9; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/assertions.r
\name{assert-is}
\alias{is.error}
\alias{is.time}
\alias{is.date}
\title{Missing is functions.}
\usage{
is.error(x)

is.time(x)

is.date(x)
}
\arguments{
\item{x}{object to test}
}
\description{
Missing is functions.
}
\examples{
a <- Sys.time()
is.time(a)
b <- Sys.Date()
is.date(b)
c <- try(stop("!!"))
is.error(c)
}
\seealso{
Other assertions: \code{\link{are_equal}},
  \code{\link{is.scalar}}, \code{\link{noNA}},
  \code{\link{not_empty}}
}