Add a pretty print function for PlotFTIR loaded data structures that shows:
- spectral range
- inferred resolution
- absorbance or transmittance data
- number of samples and sample ids
These data structures already have some attributes given (e.g. attr(spectra, 'intensity') will show either absorbance or transmittance. Assign a PlotFTIR-data to class (don't exclude other classes such as data.frame or tibble) and add a print.PlotFTIR-data to the stack to do this.
Document the pretty printing in english and french and include it in NEWS and the README file. Update vignettes as would make sense to include the new printing as well (e.g. "Let's look at the structure of the data we've loaded: print(plotfitr_data)").
Make sure that imported data from other packages also gets the same class addition.
Add a pretty print function for PlotFTIR loaded data structures that shows:
These data structures already have some attributes given (e.g.
attr(spectra, 'intensity')will show eitherabsorbanceortransmittance. Assign a PlotFTIR-data to class (don't exclude other classes such as data.frame or tibble) and add a print.PlotFTIR-data to the stack to do this.Document the pretty printing in english and french and include it in NEWS and the README file. Update vignettes as would make sense to include the new printing as well (e.g. "Let's look at the structure of the data we've loaded:
print(plotfitr_data)").Make sure that imported data from other packages also gets the same class addition.