tests/testthat/test-construct_dump.R

test_that("construct_dump", {
  tmp <- tempfile(fileext = ".R")
  construct_dump(list(cars = cars), path = tmp)
  e <- new.env()
  source(tmp, local = e)
  expect_equal(e$cars, cars)
})

Try the constructive package in your browser

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

constructive documentation built on Oct. 22, 2026, 5:07 p.m.