Skip to content

Commit

Permalink
Fix #392
Browse files Browse the repository at this point in the history
also partially #380
  • Loading branch information
chainsawriot committed Apr 4, 2024
1 parent 53ff4ba commit 003b668
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ Suggests:
yaml,
qs,
arrow (>= 0.17.0),
stringi
stringi,
withr
License: GPL-2
VignetteBuilder: knitr
Encoding: UTF-8
Expand Down
9 changes: 6 additions & 3 deletions tests/testthat/test_format_parquet.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ require("datasets")

test_that("Export to and import from parquet", {
skip_if_not_installed("arrow")
expect_true(export(iris, "iris.parquet") %in% dir())
expect_true(is.data.frame(import("iris.parquet")))
unlink("iris.parquet")
skip_on_os("mac") ## apache/arrow#40991
withr::with_tempfile("iris_path", fileext = ".parquet", code = {
export(iris, iris_path)
expect_true(file.exists(iris_path))
expect_true(is.data.frame(import(iris_path)))
})
})

0 comments on commit 003b668

Please sign in to comment.