tests/scenarios/tests-separate.R

devtools::load_all()
Sys.setenv(drake_skip_callr = "true")
for (scenario in sort(testing_scenario_names())) {
  cat(scenario, "\n")
  system2(
    command = "R",
    args = paste0(
      "CMD BATCH --no-save '--args ",
      scenario, "' one-test.R ", scenario, ".out"
    )
  )
}

Try the drake package in your browser

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

drake documentation built on Nov. 6, 2023, 5:09 p.m.