Breaking change:
NOT_CRAN environment variable is
set to true. This means that the skip argument
in expect_snapshot_print() and
expect_snapshot_plot() is no longer needed for skipping
tests on CRAN.New features:
skip argument in
expect_snapshot_plot() to skip the test if the condition is
not met. Plot tests are skipped by default on CRAN, that is, when either
of these conditions is false:
interactive() is FALSENOT_CRAN environment variable is not
truepar_args argument in
expect_snapshot_plot() to pass graphical parameters to
graphics::par() for PNG and ragg devices.New arguments to expect_snapshot_print():
fn_current: A function to process the current snapshot
string before comparison.fn_target: A function to process the target snapshot
string before comparison.review: TRUE (default) to write the diff plot to file.
FALSE to return a failure but no file.style argument to
expect_snapshot_plot() and
expect_equivalent_images() to control the style of the diff
image to print. Plot with “old”, “new”, and “diff” facets.ignore_white_space argument in
expect_snapshot_print().mode argument in
expect_snapshot_print()diffobj messagesdiffObj::diffPrint(guides = FALSE) because
guides generated errors in some long text comparisons.os argument to skip tests on unspecified operating
systems.device_args argument to pass additional arguments
to the device function.