All the photobiology packages updated

For some of the packages the updates are minor, just cosmetic changes to documentation. However, I have made some important changes to the “photobiology” package, and this has required me to also make changes to some packages that depend on it. The values returned by previously existing commands should remain unchanged, except for “photobiologySensors” where one previously incomplete data set has been replaced.

The most important change is that the “irradiance” functions now optionally accept a list of wavebands, which should make computations a little bit faster, but mainly make user code much simpler and more compact. These functions set the “names” of the returned values to the names of the names in the list of wavebands, and if the list elements are unnamed, to the default names of the wavebands.

wavebands are now S3 objects with class “waveband”, and a print function has been added. This makes output “nicer”. The new_waveband function now automatically generates a suitable name if one is not provided by the user.

A new family of functions “split_irradiance” has been added, which simplifies the job of calculating the contribution of different wavelength ranges to the total irradiance.

Package “photobiologySensors” has been revised, adding data for additional sensors and replacing the incomplete data earlier provided for TOCON_E. Some sensor names have been shortened.

Package “photobiologyLEDs” has been added. It is not quite ready, and more spectra will be added soon.

All packages have been tested and built for R 3.0.x and the just released R 3.1.0. Current versions of the photobiology packages require R 3.0.0 or later, because of the R functions they use.

A repository has been created for the packages, which means that installation and updates should be much easier to do now. See the new web page for the instructions.

The built packages will no longer be available for download from Bitbucket, but the public repositories will continue to be used for development. The packages can also be manually downloaded from the new repository if needed. The new repository’s address is http://www.mv.helsinki.fi/aphalo/R/ and can be accessed using any web browser.

Leave a Reply

Your email address will not be published. Required fields are marked *