File: are_equal.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 (27 lines) | stat: -rw-r--r-- 578 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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/assertions.r
\name{are_equal}
\alias{are_equal}
\title{Are two objects equal?}
\usage{
are_equal(x, y, ...)
}
\arguments{
\item{x, y}{objects to compare}

\item{...}{additional arguments passed to \code{\link{all.equal}}}
}
\description{
Are two objects equal?
}
\examples{
x <- 2
see_if(are_equal(x, 1.9))
see_if(are_equal(x, 1.999, tol = 0.01))
see_if(are_equal(x, 2))
}
\seealso{
Other assertions: \code{\link{is.error}},
  \code{\link{is.scalar}}, \code{\link{noNA}},
  \code{\link{not_empty}}
}