File: testthat.R

package info (click to toggle)
r-cran-pkgconfig 2.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 144 kB
  • sloc: sh: 13; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 260 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10

if (require(testthat, quietly = TRUE) &&
    require(disposables, quietly = TRUE) &&
    Sys.getenv("NOT_CRAN") == "true") {
  library(pkgconfig)
  test_check("pkgconfig")

} else {
  cat("The testthat and disposables packages are required for unit tests")
}