Closed cpauvert closed 9 months ago
I see two possibilities:
process_spectra()
instead of using the fullName metadata as the fullName might not be always the most relevant nameprocess_spectra()
get_spectra_names()
that could be invoke by default (see below for toy example)process_spectra
still expects a tibble, but either it is given by the user for custom nomenclature, or the default with the fullName metadata is used.process_spectra(spectra_list, names = get_spectra_names(spectra_list))
this error can happen when multiple spectra have the same name, which should not happen with proper research data input but can arise during data analyses.
At the moment, the function stops. An improvement would be to exit gracefully at least, or provide a solution (would
make.unique()
be possible or too intrusive?)