Debian Codegraph @

tests/testthat/test-pkgdown.R

raw
1
2 test_that("pkgdown works", {
3 skip_on_cran()
4 skip_if_not_installed("rprojroot")
5
6 # These tests can only be run when we have access to the source
7 # (i.e., they are skipped with `R CMD check`)
8 pkgdown_file <- "../../tools/documentation/checkPkgdown.R"
9 if (file.exists(pkgdown_file)) {
10 source(pkgdown_file)
11 } else {
12 skip("Not able to verify whether the pkgdown reference is up-to-date")
13 }
14 })