https://github.com/cran/pkgdown
Raw File
Tip revision: 6522ead89d4a379cf0626f742814ad6e5cc831bc authored by Hadley Wickham on 03 September 2019, 15:40:02 UTC
version 1.4.0
Tip revision: 6522ead
test-dont.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test.R
\name{test-dont}
\alias{test-dont}
\title{Test case: don't}
\description{
Test case: don't
}
\examples{
\dontrun{
  stop("This is an error!", call. = FALSE)
}

# Inline \donttest is silently ommitted
\donttest{message("Hi!")}

# Block \donttest indicated with comments
\donttest{
# This is a comment
1 + 3
}

# And works even when not at the top level
if (TRUE) {
  \donttest{
  1 + 2
  }
}

answer <- 1
\dontshow{
answer <- 42
}
answer # should be 42
}
\seealso{
Other tests: \code{\link{test-crayon}},
  \code{\link{test-figures}}, \code{\link{test-links}},
  \code{\link{test-lists}},
  \code{\link{test-output-styles}},
  \code{\link{test-params}}, \code{\link{test-verbatim}}
}
\concept{tests}
\keyword{internal}
back to top