Skip to content

Commit

Permalink
Rollback nanoparquet ref #315 (#446)
Browse files Browse the repository at this point in the history
* Rollback nanoparquet ref #315

* Bump ver
  • Loading branch information
chainsawriot authored Jul 26, 2024
1 parent 88aa095 commit 44439eb
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rio
Type: Package
Title: A Swiss-Army Knife for Data I/O
Version: 1.2.0
Version: 1.2.1
Authors@R: c(person("Jason", "Becker", role = "aut", email = "[email protected]"),
person("Chung-hong", "Chan", role = c("aut", "cre"), email = "[email protected]",
comment = c(ORCID = "0000-0002-6232-7530")),
Expand Down Expand Up @@ -53,8 +53,7 @@ Imports:
writexl,
lifecycle,
R.utils,
readr,
nanoparquet
readr
Suggests:
datasets,
bit64,
Expand All @@ -74,7 +73,8 @@ Suggests:
qs,
arrow (>= 0.17.0),
stringi,
withr
withr,
nanoparquet
License: GPL-2
VignetteBuilder: knitr
Encoding: UTF-8
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# rio 1.2.1

* Roll back the decision to add parquet in the import tier see #455 #315

# rio 1.2.0

* Fix lintr issues #434 (h/t @bisaloo Hugo Gruson)
Expand Down
2 changes: 1 addition & 1 deletion R/import_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ extract_html_row <- function(x, empty_value) {

#' @export
.import.rio_parquet <- function(file, which = 1, ...) {
#.check_pkg_availability("arrow")
.check_pkg_availability("nanoparquet")
.docall(nanoparquet::read_parquet, ..., args = list(file = file, options = nanoparquet::parquet_options(class = "data.frame")))
}

Expand Down
Binary file modified R/sysdata.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ The full list of supported formats is below:
| Gzip | gz / gzip | base | base | Default | |
| Zip files | zip | utils | utils | Default | |
| Ambiguous file format | dat | data.table | | Default | Attempt as delimited text data |
| Apache Arrow (Parquet) | parquet | nanoparquet | nanoparquet | Default | |
| CSVY (CSV + YAML metadata header) | csvy | data.table | data.table | Default | |
| Comma-separated data | csv | data.table | data.table | Default | |
| Comma-separated data (European) | csv2 | data.table | data.table | Default | |
Expand All @@ -160,6 +159,7 @@ The full list of supported formats is below:
| Text Representations of R Objects | dump | base | base | Default | |
| Weka Attribute-Relation File Format | arff / weka | foreign | foreign | Default | |
| XBASE database files | dbf | foreign | foreign | Default | |
| Apache Arrow (Parquet) | parquet | nanoparquet | nanoparquet | Suggest | |
| Clipboard | clipboard | clipr | clipr | Suggest | default is tsv |
| EViews | eviews / wf1 | hexView | | Suggest | |
| Fast Storage | fst | fst | fst | Suggest | |
Expand Down
2 changes: 1 addition & 1 deletion data-raw/single.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"input": "parquet",
"format": "parquet",
"type": "import",
"type": "suggest",
"format_name": "Apache Arrow (Parquet)",
"import_function": "nanoparquet::read_parquet",
"export_function": "nanoparquet::write_parquet",
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_format_parquet.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
skip_if_not_installed("arrow")
skip_if_not_installed("nanoparquet")
skip_on_os("mac") ## apache/arrow#40991

test_that("Export to and import from parquet", {
Expand Down

0 comments on commit 44439eb

Please sign in to comment.