r-lib / vdiffr

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

Running snapshot_review() of a package checked with devtools::check() ? #133

Open Qile0317 opened 1 year ago

Qile0317 commented 1 year ago

For the dev branch of my package, on my device locally, running devtools::test() works, but devtools::check() fails for a very specific case to do with a plotting function tested by vdiffr. I've read the Usual Suspects for specific failure modes issue and still don't know the problem, as another function which uses this tested function does pass the test, so its probably some hidden, obscure bug?

Regardless, the output from devtools::check states to Run testthat::snapshot_review('plot_API/') to review changes` but I can't access the temporary environment. Is there a way to do so?

The most peculiar thing is that if I run devtools::build(), and then run rcmdcheck::rcmdcheck() on the built tarball, the check passes.