tests/testthat/test_format_dif.R

context("DIF imports/exports")

test_that("Import from DIF", {
    dd <- import(file.path(system.file("misc", package = "utils"), "exDIF.dif"), transpose = TRUE)
    expect_true(inherits(dd, "data.frame"))
})

Try the rio package in your browser

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

rio documentation built on Nov. 22, 2021, 9:07 a.m.