Sometimes it is useful to reload isotope files from their original data files (e.g. after upgrading to a newer version of the isoreader package). The functions described below are intended to make this very easy. However, it is only possible for iso_file objects whose file paths still point to the original raw data files.
iso_reread_files(iso_files, ..., stop_if_missing = FALSE, quiet = default(quiet)) iso_reread_storage(rds_filepaths, ..., stop_if_missing = FALSE, quiet = default(quiet)) iso_reread_archive(...)
collection of iso_file objects
whether to stop re-reading if any of the original data files are missing (if FALSE, will warn about the missing files adding a warning to them, but also re-read those that do exist)
whether to display (quiet=FALSE) or silence (quiet = TRUE) information messages. Set parameter to overwrite global defaults for this function or set global defaults with calls to iso_turn_info_message_on and iso_turn_info_message_off
the path(s) to the iso_files R data archive(s) to re-read (can be a single file or vector of files)
iso_reread_files will re-read all the original data files for the passed in
iso_files object. Returns the reread iso_file objects.
iso_reread_storage is a convenience function for refreshing saved iso_file collections (see
iso_save). It will load a specific iso_files R Data Storage file (
rds_filepath), re-read all the data from the original data files and save the collection back to the same rds file. The filepaths are returned invisibly.
Note that this function will also reread the older .rda Archive files but store them in the newer .rds format after re-reading.
iso_reread_archive is deprecated in favour of
re-reading files with their original read parameters is not yet supported