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 April 3, 2025, 9:39 p.m.