photobiology 0.8.5 (new functionality and bug fixes)

Implement extract and replacement “indexing” methods for collections of spectra.
(Please, let me know if you encounter any errors with these methods, as some testthat tests give infinite recursion errors that I cannot reproduce outside testthat.)

Implement combine method c() for collections of spectra.

Add function convolve_each().

Add helper function shared_member_class().

photobiologySun 0.3.5 (bug fix)

Rebuild with photobiology 0.8.5.

photobiologyLEDs 0.3.2 (bug fix)

Trim Norlux data to 250..900 nm, and add source_mspct object for this multi-channel array.

Rebuild data and the package with photobiology 0.8.5.

photobiologyPlants 0.3.2 (bug fix)

Set spectral absorbance data type for photoreceptors as "internal".

Fix minor error in UVR8 data.

Rebuild all data and the package under photobiology 0.8.5.

BACKWARDS COMPATIBILITY: Internal changes to attributes in objects of  generic_mspct and derived classes are not 100% backwards compatible, but should be of little consequences to most users. No changes to user code are needed, but objects containing collections of spectra created with versions 0.8.0 to 0.8.4 may need to be rebuilt.

NOTE: Sources, and Windows binaries only for R 3.2.x, are now available in the repository.


photobiology 0.8.4 (new functionality and minor bug fixes)

Expand sun.spct and sun.daily.spct down to 280 nm with zeros.

Add methods for construction of collections of spectra from data frames with different spectra in side-by-side columns (‘untidy’ or wide data): split2source_mspct(), split2response_mscpt(), split2filter_mspct(), split2reflector_mspct(), and split2cps_mspsct().

Add function subset2mspct() for construction of collections of spectra from data frames with spectral data for different spectra in a single column (‘tidy’ or long data), and spectral objects containing several spectra, such as those returned by function rbindspct().

Add print() method for collections of spectra.

Fix minor bug in trim_spct() which was inserting ‘hinges’ on head and/or tail expansion even if use.hinges was set to FALSE.

Fix bug in rare borderline cases where NA was being returned instead of empty spectral objects (objects with zero rows) as is normal practice in R.

photobiologySun 0.3.4 (new data)

Add a collection of spectra giving a time series of a sunfleck under silver birch trees as object gap.mspct data.

NOTE: Sources, and Windows binaries only for R 3.2.x, are now available in the repository.

Old repository at mv.helsinki.fi closed

For several months the main repository for the packages has been located at https://www.r4photobiology.info/R but the old repository remained available. From today the old repository has closed. So, if you were still using it, you will need to switch to the new address. Apart for their URL the repositories have been identical until a couple of weeks ago when I stopped updating the contents of the old repository.


photobiology 0.6.8

Functions sunrise_time(), noon_time(), sunset_time(), day_length(),night_length()andday_night()gain formal parameter‘unit.out’`,
but its default value preserves earlier behaviour.

New generic functions peaks() and valleys().

subset() methods for spectral objects gain a new parameter 'idx'. (This a workaround until a way of wrapping [ operator from data.table is found.) During subsetting, tags are removed from the returned spectrum.

Functions is.photon_based(), is.energy_based(), is.absorbance_based() and is.transmittance_based() have been renamed by replacing the dot with an underscore for consistency with other functions not test for object class.

Fixed bug in trim_waveband().

photobiologygg 0.3.4

annotate_plot() now passes arguments 'angle', 'hjust' and 'vjust' to annotate_waveband() in the case of labels.

NOTE: Sources, and Windows binaries for R 3.1.x and R 3.2.x, are now available in the repository.