Skip to content

comparing two figures fails on github #162

@shug0131

Description

@shug0131

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions