tests/testthat/test-convert.R

test_that("main", {
  
  fx <- tempfile()
  fy <- tempfile()
  convert(exampleABC, file = fx)
  convert(exampleABC, inline = TRUE, file = fy)
  
  source(fx)
  x <- study
  source(fy)
  y <- study
  
  expect_equal(x,y)
  
  convert(Leidig2018, file = fx)
  source(fx)
  
  expect_equal(scan:::check_scdf(study), TRUE)
})

Try the scan package in your browser

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

scan documentation built on Aug. 8, 2023, 5:07 p.m.