tests/test-helpers/app1-standard/tests/runner2.R

withr::with_environment(
  shiny::loadSupport(),
  {
    runner2_B <- 2

    if (!identical(helper1, 123)){
      stop("Missing helper1")
    }
    if (!identical(helper2, "abc")){
      stop("Missing helper2")
    }
    if (exists("runner1_A")){
      stop("runner1_A exists -- are we leaking in between test environments?")
    }
  }
)

Try the shiny package in your browser

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

shiny documentation built on Nov. 18, 2023, 1:08 a.m.