Skip to contents

Convenience entry point that loads the raw (un-canonicalized) inputs regardless of storage format. Dispatches to read_workbook() when path is an .xlsx file, and read_directory() when path is a directory.

Usage

read_inputs(path)

Arguments

path

character; path to a directory or a .xlsx file.

Value

A named list with obs, locs, and target (and optionally config) data frames.

Examples

wb <- system.file("extdata", "imurun_example.xlsx", package = "imuRUN")
if (nzchar(wb)) {
  inputs <- read_inputs(wb)
  names(inputs)
}
#> [1] "obs"    "locs"   "target" "config"