tests/testthat/test-bdin.R

test_that("read file using filename to find template", {
  skip_on_cran()

  f <- system.file("extdata/big-files/BDIN.zip", package = "rb3")
  f <- copy_file_to_temp(f)
  f <- unzip(f, exdir = tempdir())

  res <- read_marketdata(f)
  expect_s3_class(res, "parts")
  expect_s3_class(res[[1]], "data.frame")
})

Try the rb3 package in your browser

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

rb3 documentation built on April 14, 2023, 5:10 p.m.