R/load_extdata.R

Defines functions load_extdata

Documented in load_extdata

#' Load external data from R package
#'
#' @param package one package name
#' @param file one file name
#'
#' @return path of data
#' @export
#'
load_extdata <- function(package,file){
    system.file('extdata',file,package = package,mustWork = TRUE)
}

Try the do package in your browser

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

do documentation built on Aug. 3, 2021, 5:06 p.m.