tests/testthat/test-print.R

test_that("tests for print.safeframe", {
  x <- make_safeframe(cars, distance = "dist", mph = "speed")
  expect_snapshot_output(print(x))

  y <- make_safeframe(cars)
  expect_snapshot_output(print(y))
})

Try the safeframe package in your browser

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

safeframe documentation built on June 28, 2025, 1:08 a.m.