tests/testthat/helper-skip-if.R

skip_if_no_apps <- function() {
  if (!dir.exists(test_path("apps/hello"))) {
    skip(paste0("App test folder has been ignored"))
  }
}

skip_if_no_local_apps <- function() {
  if (!dir.exists(test_path("local-apps/window"))) {
    skip(paste0("Local app test folder has been ignored"))
  }
}

Try the shinytest2 package in your browser

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

shinytest2 documentation built on Jan. 10, 2026, 1:07 a.m.