tests/testthat/helper-rdryad.R

library("vcr")
invisible(vcr::vcr_configure(dir = "../fixtures", write_disk_path = "../files"))
vcr::check_cassette_names()

ogpath <- rdryad_cache$cache_path_get()

testthat::setup({
  rdryad_cache$cache_path_set(full_path="tests/files")
})

testthat::teardown({
  rdryad_cache$cache_path_set(full_path=ogpath)
})

Try the rdryad package in your browser

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

rdryad documentation built on July 2, 2020, 3:13 a.m.