tests/testthat/test_legacy.R

context("legacy format")

test_that("Read legacy format", {

  expect_error(
      dt <- read_fst("datasets/legacy.fst", old_format = TRUE),
      "Parameter old_format is depricated"
  )

  expect_error(
    metadata_fst("datasets/legacy.fst"),
    "File header information does not contain the fst format marker"
  )
})

Try the fst package in your browser

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

fst documentation built on Feb. 8, 2022, 9:06 a.m.