R/samples.R

#' Get path for samples provided in the spector package.
#'
#' @param file file name
#'
#' @return path to \code{file}
#' @export
#'
#' @examples
#' spector_sample("sample1.bam")
spector_sample <- function(file) {
  system.file("extdata", file, package = "spector", mustWork = TRUE)
}
anasrana/spector documentation built on May 14, 2019, 2:36 p.m.