This release corrects problems triggered by recent updates to packages ‘lubridate’ and possibly ‘tibble’ (reported by putmanlab in issue #7 ). It also adds some enhancements for class
solute_spct, still under development.
BUG FIX: Conversions between
POSIXct objects are tricky because objects of the former class do not store information on the time zone. A change in ‘lubridate’ 1.8.0 made a previously working approach to these conversions silently fail to apply the shift to the hours.
If you use any of
sunset_time() either use ‘lubridate’ (< 1.8.0) or update a.s.a.p. to ‘photobiology’ (>= 0.10.12) from GitHub.
WARNING: In the current version of ‘photobiology’, if no time zone argument is passed concurrently with a date, the date is assumed to be in UTC. If this time zone does not match the location given by the geocode, the date used for the calculations can be wrong by one day.
Package ‘photobiology’ continues using UTC (universal time coordinates) as its default time zone. This differs from some functions in recent versions of package ‘lubridate’ that use the time zone reported by the OS, indicated by the character string
"" as their default. Using
"UTC" as default ensures that the code output using defaults will not depend on the OS’ time zone settings, making it reproducible across geographical locations.
Changes from version 0.10.11 the most recent CRAN release, are:
- Bug fix: With ‘lubridate’ (1.8.0) but not with previous versions, functions
sunset_time()would return wrong time values when non-default arguments to parameter
tzwere passed together with objects of class
Datepassed as arguments to
- Add methods
as.solute_spctspecialised for two-way conversion between objects of classes
- Revise the class
- Revise documentation checking that units expected for arguments and of returned values are clearly indicated and correctly formatted. Update outdated text and correct mistakes and revise unclear explanations.
NOTE: Version 0.10.12 is on its way to CRAN. [2022-08-05: submitted and accepted]
Please raise issues concerning bugs or enhancements to this package through GitHub at https://github.com/aphalo/photobiology/issues