tests/testthat/test-vdiffr.R

library(testthat)

context("visual regression")

if (!requireNamespace("vdiffr", quietly = TRUE)) {
    skip("vdiffr not available")
}

# simple box grob change

test_that("boxGrob basic appearance", {
    grid::grid.newpage()
    g <- boxGrob("Test", x = .5, y = .5)
    vdiffr::expect_doppelganger("basic box", g)
})

Try the Gmisc package in your browser

Any scripts or data that you put into this service are public.

Gmisc documentation built on March 6, 2026, 9:09 a.m.