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")

Try the mark package in your browser

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

mark documentation built on Nov. 5, 2021, 9:10 a.m.