tests/testthat/setup.R

tests_schema_validate <- function() {
  opt <- getOption("orderly.schema_validate", NULL)
  if (!is.null(opt)) {
    return(opt)
  }
  if (isTRUE(as.logical(Sys.getenv("CI", "false")))) {
    return(TRUE)
  }
  requireNamespace("jsonvalidate", quietly = TRUE)
}


withr::local_options(
  orderly.index_progress = FALSE,
  orderly.schema_validate = tests_schema_validate(),
  .local_envir = teardown_env())

Try the orderly package in your browser

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

orderly documentation built on Jan. 24, 2026, 1:07 a.m.