Read isotope data files
Usage
ir_read_isofiles(
file_paths,
show_progress = is_interactive(),
show_problems = TRUE,
pretty_json = FALSE,
reextract = pretty_json
)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- pretty_json
whether to write the JSON output in human-readable pretty-printed format (default:
FALSE). Useful for debugging; has no effect on the data read back. Note that pretty-printed files are larger than compact ones. Settingpretty_json = TRUEalso setsreextract = TRUEby default.- reextract
whether to re-extract files (uses isoextract to read files from scratch), if
FALSE(default whenpretty_json = FALSE) only extract files not previously extracted
Value
a tibble data frame 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.
