The changes from version 0.3.1, the current CRAN release, are:
Make autoplot() the recommended method and deprecate the use of plot(), which remains available for backwards compatibility.
Fix bug in autoplot() which failed to set the title to the name of the object when requested.
Add ‘ggplot2’ and ‘photobiology’ as required dependencies so that they are automatically loaded when ‘ggspectra’ is loaded.
The justification for renaming the plot() methods to autoplot() is that these methods defined in our package match better those of other specializations of autoplot() than of those of plot(), both in terms of the objects returned (ggplots) and in terms of their role as a fast way of plotting objects belonging to classes defined in independently developed packages. Some years ago, early in the development of ‘ggspectra’ it seemed more natural to use plot as the method to specialize.
As most of the methods and functions defined take as input objects belonging to classes defined in package ‘photobiology’ and return objects belonging to classes defined in package ‘ggplot2’, these two packages need in most cases to be loaded for ‘ggspectra’ to work as intended.
Changes from version0.9.25, the most recent CRAN release, are:
Move 'tibble' from Imports: to Depends: as the spectral classes are derived from those exported by package 'tibble', making visibility of private specialized methods for tibbles always necessary when using this package.
Implement s_mean(), s_median(), s_range(), s_sd(), s_var(), s_sum(), s_prod() and s_mean_se() methods for collections of spectra that operate across spectra returning computed values at each wavelength—i.e. a single computed spectral object.
Add support for na.action = "replace" to methods na.omit() and na.exclude().
Add parameter na.rm to smooth_spct() methods, with unchanged default behaviour.
Fix bug in cps2irrad() not all attributes are copied.
Fix bug insmooth_spct(): metadata not copied to returned spectrum.
Fix bug in insert_hinges_spct(): metadata not fully copied to returned spectrum.
Implement methods "wexler" and "goff.gratch" for water vapor pressure estimates. Add function water_vp2RH() and water_RH2vp() to compute relative humidity from water VP and air temperature.
The main changes from version0.4.17-1 the previous CRAN release, are:
Track code breaking change in ‘readr’ (>= 1.2.0)
Fix bug in read_oo_pidata() that was preventing reading of Ocean Optics “Raspberry Pi” Flame files with a sequence header line at the top.
Add decoding of file header to extract integration time and number of scans to read_oo_pidata().
Improve decoding of file header to extract instrument settings in read_oo_jazdata().
Because of code breaking change in package ‘readr’ this version of ‘photobiologyInOut’ requires ‘readr’ >= 1.2.0 to be installed. Function read_oopi_data() from ‘photobiologyInOut’ < 0.4.18 will not work as expected under ‘readr’ >= 1.2.0. (I thank Jim Hester for making a pull request that solved the problem introduced by the change in ‘readr’.