tests/testthat/test_format_arff.R

context("Weka (.arff) imports/exports")
require("datasets")

test_that("Export to Weka", {
    expect_true(export(iris, "iris.arff") %in% dir())
})

test_that("Import from Weka", {
    expect_true(is.data.frame(import("iris.arff")))
})

unlink("iris.arff")

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.