tests/testthat/test_format_parquet.R

context("Parquet imports/exports")
require("datasets")

test_that("Export to and import from parquet", {
    skip_if_not_installed("arrow")
    skip_if_not(arrow::arrow_available())
    expect_true(export(iris, "iris.parquet") %in% dir())
    expect_true(is.data.frame(import("iris.parquet")))
    unlink("iris.parquet")
})

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.