Skip to contents

Verifies that both required imuGAP inputs (observations, locations) exist in a directory under some supported extension. Reports every missing input at once rather than failing on the first.

Usage

check_all_inputs(dir)

Arguments

dir

character; directory to check.

Value

Invisibly NULL on success; errors listing the missing inputs otherwise.

Examples

dir <- tempfile("imurun_check_")
dir.create(dir)
for (n in c("observations", "locations", "target")) {
  write.csv(data.frame(a = 1), file.path(dir, paste0(n, ".csv")),
            row.names = FALSE)
}
check_all_inputs(dir)