Skip to contents

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 to show_problems = FALSE to turn off the live printout. Either way, all encountered problems can be retrieved with running ir_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. Setting pretty_json = TRUE also sets reextract = TRUE by default.

reextract

whether to re-extract files (uses isoextract to read files from scratch), if FALSE (default when pretty_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.