mardi 21 juin 2016

How to test if a plot was plotted in R?

Is it possible to create a unit test in R (e.g., using testthat package), which tests each of the following:

  1. if R base plot was created;
  2. if lattice/trellisobject was printed;
  3. if ggplot2object was printed;
  4. if plotly object was printed?

Aucun commentaire:

Enregistrer un commentaire