pxmake 0.11.0
This release contains a lot of breaking changes. This was done because a few
functions had name clashes with popular packages. The prefix 'px_' was added to
almost all functions to avoid this.
Because of this massive breaking change, a few other breaking changes were made
as well, to create more intuitive naming and make the package more consistent.
How to update code from before version 0.11.0
- Rename functions
- Change all modifying functions by adding the prefix
px_. E.g. change
stub()topx_stub(),heading()topx_heading(), etc. - Change
pxsave()topx_save(). - Change
micromake()topx_micro().
- Change all modifying functions by adding the prefix
- Remove functions
- These functions have been deprecated and can no longer be used:
metamake(),pxmake(),make_template().
- These functions have been deprecated and can no longer be used:
- px-object changes
- Change
x$codelists1andx$codelists2tox$cells1andx$cells2. - Change
x$acrosscelltox$acrosscells. - Change
x$variables1$typetox$variables1$variable-type.
- Change
- Excel changes
- Change sheet 'Codelists1' and 'Codelists2' to 'Cells1' and 'Cells2'.
- Change sheet 'Acrosscell' to 'Acrosscells'.
- In 'Variables1' sheet change column 'type' to 'variable-type' .
- To set a variable as TIMEVAL add a new column 'timeval' in 'Variables1' and
set it to 'TRUE'. TIMEVAL can no longer be set withtype="TIME"in
Variables1.
Breaking changes
- Rename 'codelists' to 'cells' in px-object and Excel workbooks. (#256)
- Deprecate 'metamake', 'pxmake' and 'make_template'. (#198)
- Change name of all modifying functions by adding the prefix 'px_'. (#254)
- Rename 'acrosscell' to 'acrosscells'. (#271)
- Rename
typetovariable-typein variables1. (#261) - Move TIMEVAL to its own column in variables1, instead of having it as part of
variable-type. (#265) - Rename 'pxsave' to 'px_save'. (#273)
- Rename 'figures' to 'px_figures', 'order' to 'px_order', 'add_totals' to
'px_add_totals'. (#274) - Rename 'micromake' to 'px_mircro'.
New features
- Add modifying functions:
map(),baseperiod(),domain(),elimination(),
descriptiondefault(),order(),precision(),cellnote(),cellnotex(),
cfprices(),stockfa(),variable_type(),contvariable(). (#246) (#125)
(#223) micromake()use furrr package to run in parallel. (#248)micromake()removes headings if all figures are NA. (#250)
Bug fixes and minor improvements
- Fix mistake in documentation for all table2 modifying functions.
- Avoid warning caused by helper function.
- Bugfix:
cellnote()can handle an empty data frame.