The main changes from version 0.9.20, the most recent CRAN release, are:

  • Fix bugs in copy_attributes() function (some attributes were not copied).
  • Add copying of attributes to conversion functions cps2irrad(), cps2Tfr() and cps2Rfr().
  • Add merge_attributes() function and fix bugs in handling of metadata attributes in maths operators, affecting operations between two spectral objects.
  • Implement copy of attributes and automatic _adjustment_ of the "multiple.wl" attribute in the Extraction operator [] for spectral objects.
  • Improve handling of attributes in objects containing multiple spectra in tidy (longitudinal) form. Revise setMultipleWl() to guess number of spectra when multiple.wl argument is NULL.
  • Add setIdFactor() and getIdFactor(), and add parameter idfactor to setGenericSpct() and equivalent functions.
  • Handle gracefully attempts to apply smooth_spct() method to spectra containing NA values. (Warn and return as is.)
  • Add parameter na.rm to peaks(), valleys() and related methods and functions.
  • Add parameter na.rm to normalize() methods.
  • Option "photobiology.verbose" is initialized to the value of R’s option "verbose" at the time the package is attached.
  • If option photobiology.verbose == TRUE, the presence of NA values in spectral data triggers warnings.

Documentation web site at includes all help pages, with output from all examples, and vignettes in HTML format.
NOTE: The updated package can be installed from the CRAN-like repository at

Please raise issues concerning bugs or enhancements to this package through Bitbucket

Leave a Reply