tests/testthat/test_format_syd.R

context("Systat (.syd) imports/exports")

test_that("Import from Systat", {
    skip_if_not_installed("foreign")
    expect_true(inherits(import(system.file("files/Iris.syd", package="foreign")[1]), "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.