r-lib / vdiffr

Visual regression testing and graphical diffing with testthat
https://vdiffr.r-lib.org
Other
180 stars 31 forks source link

Using vdiffr on grid table plots from gridExtra::tableGrob #99

Closed JauntyJJS closed 3 years ago

JauntyJJS commented 3 years ago

Hi,

Just a naive question.

Does the function vdiffr::expect_doppelganger able to be used on output from gridExtra tables like https://stackoverflow.com/questions/18414001/gridextra-colour-different-rows-with-tablegrob ?

lionel- commented 3 years ago

You can wrap the creation of a plot in a function, and pass that function to expect-doppelganger.