- Functions
labelise()/labelize(),cl(),unlabelise()/unlabelize(),label()andlabel<-()are moved from here to svBase.
- The
$.subsettable_type()method is now in {svMisc}.
-
Now the default object returned by
read()is adata.trameobject. -
The
read()function now usesdata.table::fread()anddata.table::fwrite()for CSV and TSV files instead of the {readr} function. Consequently, {data.table} and {R.utils} (that {data.table} uses to read compressed CSV/TSV data) are now also imported. The previousreadr::read_csv()andreadr::write_csv()functions are now accessible with typecsv_alt. Idem for typescsv2_altandtsv_alt.
- License changed to MIT for better and wider use.
-
.DollarNames()implemented forread()andwrite()function, so that there is a completion list of the acceptable types. -
as_dataframe.dataframe()andas_dataframe.list(), argumentvalidate=is replaced by.name.repair=according to changes made in {tibble} 3.0 where thevalidate=argument is defunct now. -
{palmerpenguins}
penguinsandpenguins_rawdata sets included (en and fr versions). The code ofread()had to be patched becausedata(penguins)loads bothpenguinsandpenguins_raw, butdata(penguins_raw)produces an error (sic!) -
The {datasets}
ChickWeight,failthful,ToothGrowthare now translated (en and fr versions). -
The data sets
Penicillinandsleepstudyfrom {lme4} are now translated (en and fr versions). -
The data sets
babynames,applicants,births, andlifetablesfrom {babynames} are now translated (en and fr versions).
- There was a conflict in attributing units with the {units} package. So, when this package was loaded,
units(x) <- valuewhenxis numeric became aunitsobject treated by {units}. We don't want this, so, the previous code is replaced byattr(x, "units") <- valueto avoid this clash.
-
Dependency to {svBase} added. Now the
default_dtx()function is used to output a data frame object in the user-preferred class (data.frame, data.table or tibble tbl_df) withread(). -
The dataframe object class is deprecated. Consequently,
read()does not output dataframe objects any more andas_dataframe()oris_dataframe()and similar functions are also deprecated. Theas_dataframe=argument ofread()is also deprecated now. -
There is now a list completion for
read$<tab>andwrite$<tab>. -
The
read()function can now download a file directly for all types (previously, only for functions that accepted it internally, likereadr::read_csv()but not forreadxl::read_xls()for instance). Thecache_file=argument allows to define a file to cache this download. If the file exists, the data are not redownloaded again, except ifforce = TRUE.
- Example using
.csv.tarand.csv.tar.gzare eliminated because more recentreadr::read_csv()function does not seem to handle Tar archives anymore (observed with {readr} version 2.1.2).
-
as.dataframe(table_object)was broken with 'tibble' 3.0.0. Now we use a different code to converttableobjects intotibble/dataframe. -
Rework of sources and 'pkgdown' web site added.
-
A new argument
data=synonym tofile=is added. It makes more sense for datasets loaded from packages. -
First argument of
write()is now nameddata=for coherence. -
For the
mauna_loadataset, calls totidyr::gather()(deprecated) are replaced bytidyr::pivot_longer().
- The example
iris_sidecar.csv.Rwrongly referred todata::read()instead ofdata.io::read().
- The French translation for the trees dataset had no
as_labelled()argument.
-
It is now possible to specify the default language to use for
read()with the optiondata.io-lang. -
langandlang_encodingare now recorded as attributes of the comment of the imported object.
-
A basic version of
write()is now available. -
data_types()function added to easily get information about data types that can be used withread()orwrite(). -
Description added into
read_writeoptions.
- Bug corrected: forgot to change
data->data.ioinread_writeoptions.
First version of the package on Github.