tests/testthat/test-export-parquet.R

testthat::skip_if_not_installed("arrow")

test_that("export parquet works when arrow is installed", {
  skip_if_not_installed("arrow")
  x <- generate_fake_data(ToothGrowth, n = 5, seed = 42)
  fp <- tempfile(fileext = ".parquet")
  export_fake(x, fp)
  expect_true(file.exists(fp))
})

Try the FakeDataR package in your browser

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

FakeDataR documentation built on Nov. 6, 2025, 1:15 a.m.