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 Sept. 19, 2023, 5:06 p.m.