Releases: gesistsa/rio
v1.0.1
v1.0.0
What's Changed
- Addressing ropensci initial review check by @chainsawriot in #321
- Check by @chainsawriot in #322
- Remove the obsolete data.table option change by @chainsawriot in #323
- Add
.check_pkg_availability
fix #296 by @chainsawriot in #324 - Rewrite all docs in Markdown fix #311 by @chainsawriot in #328
- Fix #327 by @chainsawriot in #329
- Make ... pass Ref #318 by @chainsawriot in #330
- Does this work 3.6 Windows by @chainsawriot in #331
- Zap all sapply fix #319 by @chainsawriot in #332
- Fix #301 by @chainsawriot in #333
- Fix #294 by @chainsawriot in #337
- removed importFrom (#325) by @schochastics in #338
- Fix #303 by @chainsawriot in #339
- qs support (#275) by @schochastics in #341
- Make
Package Philosphy
a vignette ref #320 by @chainsawriot in #342 - Fix #340 by @chainsawriot in #344
- Fix #347 by @chainsawriot in #348
- export several files to zip file (#203) by @schochastics in #346
- Implement a single source of truth [no ci] by @chainsawriot in #349
- Use
format
in internal data by @chainsawriot in #352 - Remove
ext
in internal data ref #313 by @chainsawriot in #353 - Get info by @chainsawriot in #355
- Single by @chainsawriot in #356
- make setclass authoritative #336 by @schochastics in #357
- Zap
openxlsx
and usewritexl
instead, fix #310 by @chainsawriot in #359 - removed else clutter fix #334 by @schochastics in #360
- Add the universal dummy which parameter to all import methods #326 by @chainsawriot in #361
- Deprecate unused arguments fix #343 #253 by @schochastics in #362
- Fix #326 by @chainsawriot in #364
- Add extension Vignette by @chainsawriot in #365
- Arrow by @chainsawriot in #367
- Update doc fix #315 again by @chainsawriot in #369
- Add labelled vig by @chainsawriot in #370
- Fix Labelled vig by @chainsawriot in #371
- Fix #368 by @chainsawriot in #372
- Fix #363 by @chainsawriot in #373
- Wrap all calls with
.docall
by @chainsawriot in #374 - Fix #358 by @chainsawriot in #375
New Contributors
- @schochastics made their first contribution in #338
Full Changelog: v0.5.30...v1.0.0
v0.5.30
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
This release contains no substantive code changes. It merely fixes some bugs in tests running on CRAN.
Patch release
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 fromexport()
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 thewhich
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 ahaven = FALSE
toggle restoring the previous default behavior usingforeign::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 thewhich
argument did not necessarily return the correct file if >=2 files in the compressed folder. - Tweak handling of
export()
to xlsx workbooks whenwhich
is specified. (#156)
Patch release: Bug fixes and new features in beta
This is a maintenance release that provides provisional release of a few bits of new functionality.
New Features
- New functions
characterize()
andfactorize()
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 thegather_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()
whenreadxl = FALSE
. (#152, h/t Danny Parsons) - Expanded test coverage.
Slimmer loads and support for multi-object I/O
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 aNULL
entry for any failed imports, with a warning. (#149)import_list()
gains additional argumentsrbind_fill
andrbind_label
to control rbind-ing behavior. (#149)- Added an
rbind
argument toimport_list()
. (#149) - Added a
setclass
argument toimport_list()
, ala the same inimport()
. 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()
andclipr::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 onoptions("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 thesheet
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 thewhich
argument was ignored. (h/t Mohamed Elgoussi) - Fixed handling of "data.table", "tibble", and "data.frame" classes in
set_class()
. (#144)
Maintenance Release
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()
andexport()
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
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
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.