-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
I want to check that two versions of a figure are identical, and not affected by changing some options
fig2 <- km_ggplot(fit, pval = TRUE)
vdiffr::expect_doppelganger("pvalue", fig2, variant = operating_system )
options("cctu_p_digits" = NULL)
fig4 <- km_ggplot(fit, pval = TRUE)
vdiffr::expect_doppelganger("pvalue", fig4, variant = operating_system )
So I'm using the pvalue snapshot file twice over. The logic is
fig2=pvalue & fig4=pvalue => fig2=fig4 .
This works fine locally, but on github it has a problem with re-using the pvalue snapshot file
Error in testthat::expect_snapshot_file(testcase, name = file, cran = cran, variant = variant, compare = testthat::compare_file_text): Snapshot file names must be unique. name has already been used.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels