tests/testthat/helper-local.R

local_package_copy <- function(pkg_dir, env = parent.frame()) {
  temp_dir <- withr::local_tempdir(.local_envir = env)
  file.copy(pkg_dir, temp_dir, recursive = TRUE)
  file.path(temp_dir, basename(pkg_dir))
}

Try the roxyglobals package in your browser

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

roxyglobals documentation built on Aug. 21, 2023, 5:14 p.m.