tic.R

do_package_checks(
  error_on = "error"
)

if (Sys.getenv("id_rsa") != "" && !ci()$is_tag()) {
  # pkgdown documentation can be built optionally. Other example criteria:
  # - `inherits(ci(), "TravisCI")`: Only for Travis CI
  # - `Sys.getenv("BUILD_PKGDOWN") != ""`: If the env var "BUILD_PKGDOWN" is set
  # - `Sys.getenv("TRAVIS_EVENT_TYPE") == "cron"`: Only for Travis cron jobs
  do_pkgdown(path = "docs", branch = "gh-pages")
}
GerkeLab/grkmisc documentation built on Feb. 23, 2020, 6:50 a.m.