xportr 0.3.0
CRAN release: 2023-06-21
New Features and Bug Fixes
- Fixed an issue where
xportr_type()
would overwrite column labels, widths, and “sas.formats” - Fixed messaging of
xportr_order()
to give better visibility of the number of variables being reordered. - Add new argument to
xportr_write()
to allow users to specify how xpt validation checks are handled. - Fixed bug where character_types were case sensitive. They are now case insensitive (#77).
- Updated
xportr_type()
to make type coercion more explicit. -
xpt_validate
updated to accept iso8601 date formats. (#76) - Added function
xportr_metadata()
to explicitly set metadata at the start of a pipeline (#44) - Metadata order columns are now coerced to numeric by default in
xportr_order()
to prevent character sorting (#149) - Message is shown on
xportr_*
functions when the metadata being used has multiple variables with the same name in the same domain (#128) - Fixed an issue with
xport_type()
whereDT
,DTM
variables with a format specified in the metadata (e.g. date9., datetime20.) were being converted to numeric, which will cause a 10 year difference when reading it back byread_xpt()
. SAS’s uniform start date is 1960 whereas Linux’s uniform start date is 1970 (#142). - Fixed an issue with R’s pipe
|>
that was causing functions to abort (#97) - Removed
<
and>
as illegal characters in variable and dataset labels (#98)
Documentation
- Moved pkgdown site to bootswatch. Enabled search and linked slack icon (#122).
- Additional Deep Dive vignette showcasing functions and quality of life utilities for processing
xpts
created (#84) - Get Started vignette spruced up. Messages are now displayed and link to Deep Dive vignette (#150)
- Increase test coverage to 100% (#82)
Deprecation and Breaking Changes
- The
metacore
argument has been renamed tometadata
in the following six xportr functions:xportr_df_label()
,xportr_format()
,xportr_label()
,xportr_length()
,xportr_order()
, andxportr_type()
. Please update your code to use the newmetadata
argument in place ofmetacore
.