Releases: StatisticsGreenland/pxmake
Releases · StatisticsGreenland/pxmake
pxmake 0.10.0
New features
- The function
px()
creates a px object. This is a major change to the way
package works.pxmake
andmetamake
are soft deprecated. Usepx()
andpxsave()
instead. (#197) - To modify the px object, a number of modifying functions have been added:
charset()
,creation_date()
,decimals()
,matrix()
,stub()
,heading()
,
timeval()
,add_totals()
andfigures()
. Many more need to be added in the
future, to cover all px keywords.
Breaking changes
- The 'rds' version of the px file is completly gone. Neither
pxmake()
nor
metamake()
can create them. pxmake() and metamake() can convert between Excel
and px files, and they return a px object invisibly.pxmake()
andmetamake()
will be deprecated in the future. make_template()
will be deprecated in the future -px()
automatically
creates a metadata template if none is provided.micromake()
now takes a px object as input.add_totals()
now takes a px object as input.
Bug fixes and minor improvements
README.md
has been rewritten, and includes a list of all keywords with
modifying functions. All vignettes have been removed.README.md
is now created fromREADME.Rmd
usingknitr::knit()
.
pxmake 0.9.1
New features
- Add
make_template
to create a minimial multilingual metadata template. (#186) - Add
micromake
to create many small px-files from a large data set. See
vignette(micromake)
. (#176) - Support keyword VALUENOTE (#187)
Bug fixes and minor improvements
- Add import of pipe. (Reverses commit #d59866c)
- Add vignette about creating px file and multilingual px file.
- Fix edge case in list mergeing.
- Use latin1 to default encoding, but add CODEPAGE=utf-8.
- Set maximum column width in Excel.
- Add
create_data
argument tometamake
that can supress generation of data.
pxmake 0.9.0
New features
- Let
metamake
accept a data frame as input and create a minimal metadata
template for the data.
Bug fixes and minor improvements
- Handle px-files with either zero heading variables or zero stub variables. (#95)
- Fix edge case in list sorting caused by px-files with no codes.
- Use values as codes if no code is given for add_totals variable.
pxmake 0.8.1
pxmake 0.8.0
Breaking changes
- Split sheet 'Table' into two sheets by language dependency. (#65)
- Split column 'position' in 'Variables' sheet into 'pivot' and 'order'. (#159)
- Check for illegal values in columns 'pivot' and 'type' in 'Variables sheet.
- Rename 'variable' and 'long_name' to 'variable-code' and 'variable-label'. (#144)
- Add check for language-dependent mandatory variables in Excel metadata.
New features
- Return rds object invisibly from
pxmake
andmetamake
. (#37) - Support CONTVARIABLE. (#132)
- Preserve name of FIGURES variable through all data formats.
Bug fixes and minor improvements
- Rename all internal functions from 'source_data' to 'data'. (#151)
- Print error message without the name of the function that threw the error.
- Sort metadata before saving.
pxmake 0.7.0
New features
- Make
pxmake
andmetamake
read and write to.rds
files.
Bug fixes and minor improvements
- Validate arguments to
pxmake
andmetamake
and give helpful error messages. - Support px-files without LANGUAGES keyword. (#143)
- Remove dependencies between test and run them in parallel. (#112)
- Split tests into more files to run them faster in parallel. (#149)
- GitHub actions cancels build if a newer commit is pushed.
- Lots of documentation improvements.
pxmake 0.6.0
Breaking changes
- Rewrite
pxmake
andmetamake
to improve readability.
pxmake 0.5.2
Bug fixes and minor improvements
- Remove need for awkward quoting in metadata with multiple languages.
Previously this has to be written asen","da","kl
, but can now been,da,kl
. - Remove VARIABLECODE for figures variables.
- Make
metamake
use value as code if code is missing. - Ignore NAs when summing in
add_totals
.
pxmake 0.5.1
New features
- Add keyword VARIABLECODE which should variable names from source data.
Bug fixes and minor improvements
- Remove quotes around YES in elimination.
- Make Excel table theme less dominant.
- Allow variable names to contain all characters except quotes (").
- Improve installation instructions.
pxmake 0.5.0
Breaking changes
- Rename 'General' metadata sheet to 'Table'. (#85)
- Rename argument
pxmake(source_data_path)
tosource_data
(#71) - Rename argument
metmake(out_path)
toxlsx_path
. (#106)
New features
- Write and read files in encoding defined by keyword CODEPAGE. (#114, #115)
- Break lines in px-files with values longer than 256 characters. (#113)
- Support other main languages than English. (#54)
- Support any language code (previously only supported: en, da, kl, and fo). (#117)
Bug fixes and minor improvements
- Add formatting to Excel metadata workbook created by
metamake()
. (#100) - Add argument
rds_data_path
tometamake()
to save data as rds file. (#108) - Let
pxmake()
accept data frame as source data in addition to accepting a
path. (#71) - Turn off
readLines()
warning for missing EOL character. (#113) - Rename
.figures
tofigures_
in metadata created bymetamake()
. (#104) - Allow forward slashes in variables names.
- Let
metamake()
support tables without time variables. (#120) - Use values as codes in there are no codes in metadata. (#102)