tests/testthat/test-lints.R

if (dir.exists("../../00_pkg_src")) {
  prefix <- "../../00_pkg_src/rBiasCorrection/"
} 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)
  })
kapsner/PCRBiasCorrection documentation built on June 15, 2025, 4:14 a.m.