Plot in Unit Tests

Description

Saves a plot in a PNG file that will be included in unit test HTML reports.

Usage

1
  checkPlot(expr, msg = NULL, width = 1000, height = NULL)

Arguments

expr

expression that generate th eplot

width

plot width

height

plot height (not used)

msg

plot msg explaining the plot . It will be used as the caption

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.