tests/testthat/helper-rsrc.R

# Define the rsrc function for testthat tests

# The test_path() function from testthat automatically creates paths
# relative to the tests/testthat directory.
# The resources for these tests are in tests/testthat/resources.
# This function will now construct paths to files within that subdirectory.

rsrc <- function(resource_name) {
  testthat::test_path("resources", resource_name)
}

Try the XLConnect package in your browser

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

XLConnect documentation built on Feb. 24, 2026, 9:06 a.m.