tests/testthat/helper-skip.R

#' Skip tests that are too slow for regular testing
#' @param threshold Time threshold in seconds (default: 1)
skip_if_testing_is_slow <- function(threshold = 1) {
  if (!identical(Sys.getenv("TEST_SLOW"), "true")) {
    testthat::skip("Skipping slow tests")
  }
} 

Try the ggpicrust2 package in your browser

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

ggpicrust2 documentation built on April 13, 2025, 9:08 a.m.