tests/testthat.R

library(testthat)
library(stepR)

savePathRcache <- R.cache::getCacheRootPath()
R.cache::setCacheRootPath(path = file.path(R.cache::getCacheRootPath(), "test"))

tryCatch(
  test_check("stepR"),
  finally = {
    unlink(R.cache::getCacheRootPath(), force = TRUE, recursive = TRUE)
    R.cache::setCacheRootPath(savePathRcache)
  }
)

Try the stepR package in your browser

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

stepR documentation built on Nov. 14, 2023, 1:09 a.m.