tests/testthat/helper-paths.R

# get_data_location <- function(x) {
#   system.file(
#     "testdata",
#     x,
#     package = "REDCapCAST"
#   )
# }

# setwd("tests/testthat")

get_data_location <- function(x){
  # here::here(file.path("tests","testthat","data", x))
  file.path("data", x)
}

Try the REDCapCAST package in your browser

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

REDCapCAST documentation built on April 4, 2025, 3:18 a.m.