R 4.0.1 and R 4.0.2

Two minor updates to R were released recently. R 4.0.1 contained a major bug under MS-Windows (affecting R-commander), so it was very soon followed by R 4.0.2 that fixes the problem. As always it is recommended to keep R up-to-date. R for photobiology packages and their dependencies are not affected and pass checks on R >= 3.6.0.

photobiology 0.10.4

Package documentation web site at: https://docs.r4photobiology.info/photobiology/

This release was triggered by a bug that made the package fail CRAN checks with an ERROR.

Changes from version 0.10.3 the most recent CRAN release, are:

New

  • Improve performance of color-related computations.

Fixed

  • Bugs affecting boundary cases in the new color related functions.
  • Bad code in one example in documentation. This was causing ERRORs to be reported in CRAN checks.

NOTE: The updated package is on its way to CRAN.

Please raise issues concerning bugs or enhancements to this package through Bitbucket https://bitbucket.org/aphalo/photobiology/issues

photobiology 0.10.3

Package documentation web site at: https://docs.r4photobiology.info/photobiology/

This release was triggered by problems detected by new tighter CRAN checks in what will become R (4.1.0). Better quality checks are a good thing! A few unrelated enhancements are also included.

Changes from version 0.10.2 the most recent CRAN release, are:

New

  • Implement Fresnel’s formulae for computation of reflectance of a plane interface from relative refractive index.
  • Implement Fraunhofer’s formulae for computation of diffraction in a single slit and diffraction plus interference in a double slit.
  • Enhance as_tod() and implement format() and print() methods for time-of-day.
  • Update tag() methods to use, when possible, precomputed color definitions to improve performance.

Fixed

  • Handle gracefully bad data input in normalised_diff_ind().
  • Remove bad class exports from NAMESPACE.

Compatibility

  • New features of ‘dplyr’ (>= 1.0.0) are used, so this new version is required.

NOTE: The updated package is on its way to CRAN.

Please raise issues concerning bugs or enhancements to this package through Bitbucket https://bitbucket.org/aphalo/photobiology/issues

ggpmisc 0.3.5

This version (0.3.5) adds to geom_table() support for table themes compatible with gridExtra::ttheme_default(). The default table-theme can be changed with function ttheme_set() and several new ttheme constructors are also available as well as support for user defined theme constructors and themes. Changes affect the rendering of tables, and add flexibility to the handling of mapped aesthetics in geom_table()

Note: The default theme for tables in version 0.3.5 uses slightly less padding than in previous versions, and this padding is now proportional to the text’s size instead of fixed. This will not break old code but can slightly change how tables look.

The plots below make use of two of the new table theme constructors. The second plot also uses ggplot2’s theme_dark().

Note: If the full flexibility of ‘gridExtra’ and ‘grid’ are needed for a table, the table can be constructed directly with these packages and added as an inset using geom_grob().

Acknowlegement: This update was encouraged by a recent question at stackoverflow. The tag [ggpmisc] is in use at stackoverflow for questions related to this package.

Documentation web site at http://docs.r4photobiology.info/ggpmisc/ includes all help pages, with output from all examples, and vignettes in HTML format.

NOTE: The new version of the package is on its way to CRAN.

Please raise issues concerning bugs or enhancements to this package through Bitbucket https://bitbucket.org/aphalo/ggpmisc/issues.