R/opus_test_dsn.R

Defines functions opus_test_dsn opus_test_file

Documented in opus_test_dsn opus_test_file

#' Get path of a Selected Sample OPUS File Included in the Package
#'
#' Utility function that retrieves the location of the sample OPUS
#' binary file on disk.
#' @return a character vector with the path to a selected single sample OPUS
#' file
#' @export
#' @examples
#' (fn <- opus_test_file())
opus_test_file <- function() {
  system.file("extdata", "test_data", "test_spectra.0", package = "opusreader2")
}


#' Get File Paths of Sample OPUS Files Included in the Package
#'
#' Utility function that retrieves the location of the sample OPUS
#' binary file on disk.
#' @return a character vector with the paths OPUS files included in the package
#' @export
#' @examples
#' (dsn <- opus_test_dsn())
opus_test_dsn <- function() {
  system.file("extdata", "test_data", package = "opusreader2")
}

Try the opusreader2 package in your browser

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

opusreader2 documentation built on Feb. 3, 2026, 5:07 p.m.