tests/testthat/helper-integration-tests.R

# Skip integration tests unless explicitly enabled
skip_if_not_integration <- function() {
  if (!identical(Sys.getenv("RUN_INTEGRATION_TESTS"), "true")) {
    skip(
      "Integration tests not enabled. Run `Sys.setenv(RUN_INTEGRATION_TESTS = 'true')` to enable."
    )
  }
}

Try the gutenbergr package in your browser

Any scripts or data that you put into this service are public.

gutenbergr documentation built on Jan. 19, 2026, 9:07 a.m.