R/get-data.R

Defines functions get_data

Documented in get_data

#' Get the file handle for given file in the package
#'
#' @param file_name the file name to retrieve (from the extdata folder)
#'
#' @return File handle to the given file or "" if it does not exist
#'
#' @examples
#' 
#' sannot_file <- get_data("network_compact.tsv")
#' 
#' # then read the file, for example:
#' # data <- read.delim(sannot_file)
#' # head(data)
#'
#' @export
get_data <- function(file_name) {
    system.file("extdata", file_name, package = "canvasXpress.data")
}

Try the canvasXpress.data package in your browser

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

canvasXpress.data documentation built on June 30, 2021, 1:07 a.m.