Read isotope data files
Usage
ir_read_isofiles(
file_paths,
show_progress = is_interactive(),
show_problems = TRUE,
reextract = FALSE
)Arguments
- file_paths
paths to the isodat file(s), single value or vector of paths. Use
ir_find_isofiles()to get files in a folder.- show_progress
whether to show a progress bar, by default always enabled when running interactively e.g. inside Positron or RStudio (and disabled in a notebook), turn off with
show_progress = FALSE- show_problems
whether to show problems encountered along the way (rather than just keeping track of them with
ir_get_problems()). Set toshow_problems = FALSEto turn off the live printout. Either way, all encountered problems can be retrieved with runningir_get_problems()for the returned list- reextract
whether to re-extract files (uses isoextract to read files from scratch); if
FALSE(default) only files that have not been extracted yet (or whose previous extraction is out of date) are extracted. Useir_extract_isofiles()directly for finer control over extraction (e.g.pretty_jsonordry_run).
Value
a tibble data frame (an ir_isofiles object) where each row holds the file path and nested tibbles of datasets extracted from the isodat files. Use ir_aggregate_isofiles() to aggregate data safely across files. Multiple such collections can be combined into one with a simple c() (see c.ir_isofiles()).
See also
c.ir_isofiles() to combine collections of isofiles
