tests/testthat.R

library(testthat)
library(rDataPipeline)

# Don't run tests on CRAN's isolated test rig, since they depend on a local
# registry and CLI being installed and will therefore fail.

if (Sys.getenv("_RUN_TESTS_") != "") {
  Sys.setenv(FDP_endpoint = "http://localhost:8000/api/")
  endpoint <- Sys.getenv("FDP_endpoint")
  testthat::test_check("rDataPipeline")
}

Try the rDataPipeline package in your browser

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

rDataPipeline documentation built on Nov. 18, 2021, 1:14 a.m.