tests/testthat/helper-sleep-on-ci.R

# Wait a little bit before init'ing a new ShinyDriver instance
# Help deter random phantomjs shutdowns on GHA
sleep_on_ci <- function() {
  on_ci <- isTRUE(as.logical(Sys.getenv("CI")))
  if (on_ci) {
    Sys.sleep(1)
  }
}

Try the shinytest package in your browser

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

shinytest documentation built on March 31, 2023, 11:09 p.m.