Skip to content

Releases: gesistsa/rio

v1.0.1

19 Sep 12:04
e85f12d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.0.1

v1.0.0

15 Sep 07:23
9044169
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.5.30...v1.0.0

v0.5.30

29 Aug 19:13
2540084
Compare
Choose a tag to compare

A maintenance release; now available on CRAN.

rio 0.5.30

  • Maintenance release: new maintainer
  • Mark .sas7bdat as deprecated
  • Change the minimum R version to 3.6

Patch release

29 Mar 17:16
Compare
Choose a tag to compare

This release contains no substantive code changes. It merely fixes some bugs in tests running on CRAN.

Patch release

02 Feb 09:33
Compare
Choose a tag to compare

This is a patch release with mostly some critical bug fixes and a few minor changes in behavior for a few import and export methods.

User-visible changes

  • Export the get_ext() function. (#169)
  • import_list() gains improved file name handling. (#164, h/t Ruaridh Williamson)
  • Removed the overwrite argument from export() method for xlsx files. Instead, existing workbooks are always overwritten unless which is specified, in which case only the specified sheet (if it exists) is overwritten. If the file exists but the which sheet does not, the data are added as a new sheet to the existing workbook. (#156)
  • Import of files with the ambiguous .dat extension, which are typically text-delimited files, are now passed to data.table::fread() with a message. Export to the format remains unsupported. (#98, #155)
  • Added support for export to SAS XPORT format (via haven::write_xpt()). (#157)
  • Switched default import package for SAS XPORT format to haven::read_xpt() with a haven = FALSE toggle restoring the previous default behavior using foreign::read.xpt(). (#157)

Bug fixes

  • Removed longstanding warnings from the tests of export() to fixed-width format.
  • Fix a bug related to an xml2 bug (#168, h/t Jim Hester)
  • Fixed a bug in import() from compressed files wherein the which argument did not necessarily return the correct file if >=2 files in the compressed folder.
  • Tweak handling of export() to xlsx workbooks when which is specified. (#156)

Patch release: Bug fixes and new features in beta

17 Jun 20:06
Compare
Choose a tag to compare

This is a maintenance release that provides provisional release of a few bits of new functionality.

New Features

  • New functions characterize() and factorize() provide methods for converting "labelled" variables (e.g., from Stata or SPSS) into character or factor variables using embedded metadata. This can also be useful for exporting a metadata-rich file format into a plain text file. (#153)
  • export() now sets variables with a "labels" attribute to haven's "labelled" class.
  • Added a new function spread_attrs() that reverses the gather_attrs() operation.
  • Add .bib as known-unsupported format via bib2df::bib2df().

Bug Fixes

  • Fixed a bug in writing to .zip and .tar archives related to absolute file paths.
  • Fixed some small bugs in import_list() and added tests for behavior.
  • Expanded test suite and increased test coverage, fixing a few tests that were failing on certain CRAN builds.
  • Fixed a bug in .import.rio_xlsx() when readxl = FALSE. (#152, h/t Danny Parsons)
  • Expanded test coverage.

Slimmer loads and support for multi-object I/O

28 Apr 12:57
Compare
Choose a tag to compare

This release adds new functionality, including an import_list() function to retrieve multiple files from a directory or multiple data frames from a multi-object file (e.g., HTML page, .Rdata file, zip directory, etc.). export() to Excel (.xlsx) and HTML also supports multi-object writing via export().

The release also streamlines the set of default packages, so that the package has fewer Imports dependencies, installs faster, and loads faster. install_formats() will install all Suggests packages to enable full file format support.

New features

  • New function import_list() returns a list of data frames from a multi-object Excel Workbook, .Rdata file, zip directory, or HTML file. (#126, #129)
  • import_list() now returns a NULL entry for any failed imports, with a warning. (#149)
  • import_list() gains additional arguments rbind_fill and rbind_label to control rbind-ing behavior. (#149)
  • Added an rbind argument to import_list(). (#149)
  • Added a setclass argument to import_list(), ala the same in import().
  • export() can now write a list of data frames to an Excel (.xlsx) workbook. (#142, h/t Jeremy Johnson)
  • export() can now write a list of data frames to an HTML (.html) file.
  • Improved documentation of mapping between file format support and the packages used for each format. (#151, h/t Patrick Kennedy)
  • Moved all non-critical format packages to Suggests, rather than Imports. (#143)
  • Import to and export from the clipboard now relies on clipr::read_clip() and clipr::write_clip(), respectively, thus (finally) providing Linux support. (#105, h/t Matthew Lincoln)
  • Added support for Matlab formats. (#78, #98)
  • Added support for fst format. (#138)
  • With new data.table release, export using fwrite() is now the default for text-based file formats.
  • Handle HTML tables with <tbody> elements. (h/t Mohamed Elgoussi)
  • Google Spreadsheets can now be imported using any of the allowed formats (CSV, TSV, XLSX, ODS).
  • Added support for writing to ODS files via readODS::write_ods(). (#96)
  • Modified defaults and argument handling in internal function read_delim().

Bug fixes

  • Further fixes to .csv.gz import/export. (#146, h/t Trevor Davis)
  • Verbosity of export(format = "fwf") now depends on options("verbose").
  • Fixed various errors, warnings, and messages in fixed-width format tests.
  • Bumped readxl dependency to >= 0.1.1 (#130, h/t Yongfa Chen)
  • Pass explicit excel_format arguments when using readxl functions. (#130)
  • Fixed a bug in the .import.rio_xls() and .import.rio_xlsx() where the sheet argument would return an error.
  • Fixed a bug in the import of delimited files when fread = FALSE. (#133, h/t Christopher Gandrud)
  • Fixed a bug in .import.rio_xls() wherein the which argument was ignored. (h/t Mohamed Elgoussi)
  • Fixed handling of "data.table", "tibble", and "data.frame" classes in set_class(). (#144)

Maintenance Release

25 Sep 14:54
Compare
Choose a tag to compare

This is a maintenance release primarily intended to continue support for SPSS, Stata, and SAS files after the update of haven to v1.0.0. The issues addressed since last release are:

New features

  • Added support for importing from multi-table HTML files using the which argument. (#126)
  • Update import and export methods to use new xml2 for XML and HTML export. (#86)
  • Added support for export of .sas7bdat files via haven (#116)
  • Restored support for import from SPSS portable via haven (#116)
  • Improved behavior of import() and export() with respect to unrecognized file types. (#124, #125, h/t Jason Becker)
  • Attempt to recognize compressed but non-archived file formats (e.g., ".csv.gz"). (#123, h/t trevorld)

Minor notes

  • Added explicit tests of the S3 extension mechanism for .import() and .export().
  • Fix failing tests related to stricter variable name handling for Stata files in development version of haven. (#113, h/t Hadley Wickham)
  • Updated import methods to reflect changed formal argument names in haven. (#116)
  • Converted to roxygen2 documentation and made NEWS an explicit markdown file.

Maintenance Release

09 Aug 10:21
Compare
Choose a tag to compare

This is a patch release that contains a few small fixes:

  • Changed feather Imports to Suggests to make rio installable on older R versions. (#104)
  • Migrated CSVY-related code to separate package (https://github.com/leeper/csvy/). (#111)
  • Fix import of European-style CSV files (sep = "," and sep2 = ";"). (#106, #107, h/t Stani Stadlmann)
  • Removed unnecessary error in xlsx imports. (#103, h/t Kevin Wright)
  • Noted new RStudio add-in, GREA, that uses rio. (#109)
  • Note unsupported NumPy i/o via RcppCNPy. (#112)

Maintenance Release

14 Jun 09:55
Compare
Choose a tag to compare

This is a maintenance release with a few small bug fixes and the removal of support for importing SPSS portable files.

  • Removed support for import of SPSS Portable (.por) files, given deprecation from haven. (#100)
  • Fixed a bug in the handling of "labelled" class variables imported from haven caused by haven return "tbl_df" rather than "data.frame" class structures. (#102, h/t Pierre LaFortune)
  • Improved use of the sep argument for import of delimited files to allow override of defaults. (#99, h/t Danny Parsons)
  • Fixed a failing test of file compression that was found in v0.4.3 on some platforms.
  • Fixed other tests to remove (unimportant) warnings.