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 Nov. 22, 2021, 9:07 a.m.