R/system-file.R

Defines functions make_sf

Documented in make_sf

#' Make system file function
#'
#' Simple wrapper for package specific function for internal packages
#'
#' @param package The name of the package
#' @export

make_sf <- function(package) {
  function(..., check = FALSE) {
    match.fun("system.file")(..., package = package, mustWork = check)
  }
}

sf <- make_sf("mark")
jmbarbone/jordan documentation built on April 1, 2024, 7:46 p.m.