@@ -14,11 +14,11 @@ coverage](https://codecov.io/gh/gesistsa/rio/graph/badge.svg)](https://app.codec
1414The aim of ** rio** is to make data file I/O in R as easy as possible by
1515implementing two main functions in Swiss-army knife style:
1616
17- - ` import() ` provides a painless data import experience by
18- automatically choosing the appropriate import/read function based on
19- file extension (or a specified ` format ` argument)
20- - ` export() ` provides the same painless file recognition for data
21- export/write functionality
17+ - ` import() ` provides a painless data import experience by automatically
18+ choosing the appropriate import/read function based on file extension
19+ (or a specified ` format ` argument)
20+ - ` export() ` provides the same painless file recognition for data
21+ export/write functionality
2222
2323## Installation
2424
@@ -135,54 +135,55 @@ install_formats()
135135
136136The full list of supported formats is below:
137137
138- | Name | Extensions / “format” | Import Package | Export Package | Type | Note |
139- | :---------------------------------- | :---------------------------------- | :------------- | :------------- | :------ | :----------------------------- |
140- | Archive files (handled by tar) | tar / tar.gz / tgz / tar.bz2 / tbz2 | utils | utils | Default | |
141- | Bzip2 | bz2 / bzip2 | base | base | Default | |
142- | Gzip | gz / gzip | base | base | Default | |
143- | Zip files | zip | utils | utils | Default | |
144- | Ambiguous file format | dat | data.table | | Default | Attempt as delimited text data |
145- | CSVY (CSV + YAML metadata header) | csvy | data.table | data.table | Default | |
146- | Comma-separated data | csv | data.table | data.table | Default | |
147- | Comma-separated data (European) | csv2 | data.table | data.table | Default | |
148- | Data Interchange Format | dif | utils | | Default | |
149- | Epiinfo | epiinfo / rec | foreign | | Default | |
150- | Excel | excel / xlsx | readxl | writexl | Default | |
151- | Excel (Legacy) | xls | readxl | | Default | |
152- | Excel (Read only) | xlsm / xltx / xltm | readxl | | Default | |
153- | Fixed-width format data | fwf | readr | utils | Default | |
154- | Fortran data | fortran | utils | | Default | No recognized extension |
155- | Google Sheets | googlesheets | data.table | | Default | As comma-separated data |
156- | Minitab | minitab / mtp | foreign | | Default | |
157- | Pipe-separated data | psv | data.table | data.table | Default | |
158- | R syntax | r | base | base | Default | |
159- | SAS | sas / sas7bdat | haven | haven | Default | Export is deprecated |
160- | SAS XPORT | xport / xpt | haven | haven | Default | |
161- | SPSS | sav / spss | haven | haven | Default | |
162- | SPSS (compressed) | zsav | haven | haven | Default | |
163- | SPSS Portable | por | haven | | Default | |
164- | Saved R objects | rda / rdata | base | base | Default | |
165- | Serialized R objects | rds | base | base | Default | |
166- | Stata | dta / stata | haven | haven | Default | |
167- | Systat | syd / systat | foreign | | Default | |
168- | Tab-separated data | / tsv / txt | data.table | data.table | Default | |
169- | Text Representations of R Objects | dump | base | base | Default | |
170- | Weka Attribute-Relation File Format | arff / weka | foreign | foreign | Default | |
171- | XBASE database files | dbf | foreign | foreign | Default | |
172- | Apache Arrow (Parquet) | parquet | nanoparquet | nanoparquet | Suggest | |
173- | Clipboard | clipboard | clipr | clipr | Suggest | default is tsv |
174- | EViews | eviews / wf1 | hexView | | Suggest | |
175- | Fast Storage | fst | fst | fst | Suggest | |
176- | Feather R/Python interchange format | feather | arrow | arrow | Suggest | |
177- | Graphpad Prism | pzfx | pzfx | pzfx | Suggest | |
178- | HTML Tables | htm / html | xml2 | xml2 | Suggest | |
179- | JSON | json | jsonlite | jsonlite | Suggest | |
180- | Matlab | mat / matlab | rmatio | rmatio | Suggest | |
181- | OpenDocument Spreadsheet | ods | readODS | readODS | Suggest | |
182- | OpenDocument Spreadsheet (Flat) | fods | readODS | readODS | Suggest | |
183- | Serialized R objects (Quick) | qs | qs | qs | Suggest | |
184- | Shallow XML documents | xml | xml2 | xml2 | Suggest | |
185- | YAML | yaml / yml | yaml | yaml | Suggest | |
138+ | Name | Extensions / “format” | Import Package | Export Package | Type | Note |
139+ | :---| :---| :---| :---| :---| :---|
140+ | Archive files (handled by tar) | tar / tar.gz / tgz / tar.bz2 / tbz2 | utils | utils | Default | |
141+ | Bzip2 | bz2 / bzip2 | base | base | Default | |
142+ | Gzip | gz / gzip | base | base | Default | |
143+ | Zip files | zip | utils | utils | Default | |
144+ | Ambiguous file format | dat | data.table | | Default | Attempt as delimited text data |
145+ | CSVY (CSV + YAML metadata header) | csvy | data.table | data.table | Default | |
146+ | Comma-separated data | csv | data.table | data.table | Default | |
147+ | Comma-separated data (European) | csv2 | data.table | data.table | Default | |
148+ | Data Interchange Format | dif | utils | | Default | |
149+ | Epiinfo | epiinfo / rec | foreign | | Default | |
150+ | Excel | excel / xlsx | readxl | writexl | Default | |
151+ | Excel (Legacy) | xls | readxl | | Default | |
152+ | Excel (Read only) | xlsm / xltx / xltm | readxl | | Default | |
153+ | Fixed-width format data | fwf | readr | utils | Default | |
154+ | Fortran data | fortran | utils | | Default | No recognized extension |
155+ | Google Sheets | googlesheets | data.table | | Default | As comma-separated data |
156+ | Minitab | minitab / mtp | foreign | | Default | |
157+ | Pipe-separated data | psv | data.table | data.table | Default | |
158+ | R syntax | r | base | base | Default | |
159+ | SAS | sas / sas7bdat | haven | haven | Default | Export is deprecated |
160+ | SAS XPORT | xport / xpt | haven | haven | Default | |
161+ | SPSS | sav / spss | haven | haven | Default | |
162+ | SPSS (compressed) | zsav | haven | haven | Default | |
163+ | SPSS Portable | por | haven | | Default | |
164+ | Saved R objects | rda / rdata | base | base | Default | |
165+ | Serialized R objects | rds | base | base | Default | |
166+ | Stata | dta / stata | haven | haven | Default | |
167+ | Systat | syd / systat | foreign | | Default | |
168+ | Tab-separated data | / tsv / txt | data.table | data.table | Default | |
169+ | Text Representations of R Objects | dump | base | base | Default | |
170+ | Weka Attribute-Relation File Format | arff / weka | foreign | foreign | Default | |
171+ | XBASE database files | dbf | foreign | foreign | Default | |
172+ | Apache Arrow (Parquet) | parquet | nanoparquet | nanoparquet | Suggest | |
173+ | Clipboard | clipboard | clipr | clipr | Suggest | default is tsv |
174+ | EViews | eviews / wf1 | hexView | | Suggest | |
175+ | Fast Storage | fst | fst | fst | Suggest | |
176+ | Feather R/Python interchange format | feather | arrow | arrow | Suggest | |
177+ | Graphpad Prism | pzfx | pzfx | pzfx | Suggest | |
178+ | HTML Tables | htm / html | xml2 | xml2 | Suggest | |
179+ | JSON | json | jsonlite | jsonlite | Suggest | |
180+ | Matlab | mat / matlab | rmatio | rmatio | Suggest | |
181+ | OpenDocument Spreadsheet | ods | readODS | readODS | Suggest | |
182+ | OpenDocument Spreadsheet (Flat) | fods | readODS | readODS | Suggest | |
183+ | Serialized R objects (qs) | qs | qs | qs | Suggest | |
184+ | Serialized R objects (qs2) | qs2 | qs2 | qs2 | Suggest | Replaces {qs} package which will be deprecated. |
185+ | Shallow XML documents | xml | xml2 | xml2 | Suggest | |
186+ | YAML | yaml / yml | yaml | yaml | Suggest | |
186187
187188Additionally, any format that is not supported by ** rio** but that has a
188189known R implementation will produce an informative error message
@@ -253,23 +254,22 @@ c("mtcars.tsv", "iris.tsv") %in% dir()
253254
254255### GUIs
255256
256- - [ ** datamods** ] ( https://cran.r-project.org/package=datamods ) provides
257- Shiny modules for importing data via ` rio ` .
258- - [ ** rioweb** ] ( https://github.com/lbraglia/rioweb ) that provides
259- access to the file conversion features of ` rio ` .
260- - [ ** GREA** ] ( https://github.com/Stan125/GREA/ ) is an RStudio add-in
261- that provides an interactive interface for reading in data using
262- ` rio ` .
257+ - [ ** datamods** ] ( https://cran.r-project.org/package=datamods ) provides
258+ Shiny modules for importing data via ` rio ` .
259+ - [ ** rioweb** ] ( https://github.com/lbraglia/rioweb ) that provides access
260+ to the file conversion features of ` rio ` .
261+ - [ ** GREA** ] ( https://github.com/Stan125/GREA/ ) is an RStudio add-in that
262+ provides an interactive interface for reading in data using ` rio ` .
263263
264264### Similar packages
265265
266- - [ ** reader** ] ( https://cran.r-project.org/package=reader ) handles
267- certain text formats and R binary files
268- - [ ** io** ] ( https://cran.r-project.org/package=io ) offers a set of
269- custom formats
270- - [ ** ImportExport** ] ( https://cran.r-project.org/package=ImportExport )
271- focuses on select binary formats (Excel, SPSS, and Access files) and
272- provides a Shiny interface.
273- - [ ** SchemaOnRead** ] ( https://cran.r-project.org/package=SchemaOnRead )
274- iterates through a large number of possible import methods until one
275- works successfully
266+ - [ ** reader** ] ( https://cran.r-project.org/package=reader ) handles
267+ certain text formats and R binary files
268+ - [ ** io** ] ( https://cran.r-project.org/package=io ) offers a set of custom
269+ formats
270+ - [ ** ImportExport** ] ( https://cran.r-project.org/package=ImportExport )
271+ focuses on select binary formats (Excel, SPSS, and Access files) and
272+ provides a Shiny interface.
273+ - [ ** SchemaOnRead** ] ( https://cran.r-project.org/package=SchemaOnRead )
274+ iterates through a large number of possible import methods until one
275+ works successfully
0 commit comments