Attempts to identify the file format (generic CSV, SciAps, Applied Spectra)
and dispatches to the correct reader. When path is a directory, delegates
to ls_read_dir().
Examples
tmp <- tempfile(fileext = ".csv")
utils::write.csv(data.frame(wavelength = seq(200, 300, 1),
intensity = 1:101),
tmp, row.names = FALSE)
spec <- ls_read_auto(tmp, verbose = FALSE)
unlink(tmp)