tests/testthat/helpers_golem_recommended.R

# A forthcoming golem feature
# https://github.com/ThinkR-open/golem/pull/435
expect_running <- function(sleep){
  skip_on_cran()
  skip_on_travis()
  skip_on_appveyor()
  x <- processx::process$new(
    "R", 
    c(
      "-e", 
      "pkgload::load_all(here::here());run_app()"
    )
  )
  Sys.sleep(sleep)
  expect_true(x$is_alive())
  x$kill()
} 

Try the dragon package in your browser

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

dragon documentation built on April 8, 2022, 9:07 a.m.