tests/testthat/test-lints.R

context("lints")

if (dir.exists("../../00_pkg_src")) {
  prefix <- "../../00_pkg_src/Requirements/"
} else if (dir.exists("../../R")) {
  prefix <- "../../"
} else if (dir.exists("./R")) {
  prefix <- "./"
}

test_that(
  desc = "test lints",
  code = {
    skip_on_cran()
    skip_if(dir.exists("../../00_pkg_src"))
    lintr::expect_lint_free(path = prefix)
  })
joundso/requirements documentation built on March 1, 2023, 7:28 a.m.