Skip to content

Releases: StatisticsGreenland/pxmake

pxmake 0.10.0

09 Feb 09:43
Compare
Choose a tag to compare

New features

  • The function px() creates a px object. This is a major change to the way
    package works. pxmake and metamake are soft deprecated. Use px() and pxsave() 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() and figures(). 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() and metamake()
    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 from README.Rmd using knitr::knit().

pxmake 0.9.1

08 Dec 13:34
Compare
Choose a tag to compare

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 to metamake that can supress generation of data.

pxmake 0.9.0

22 Aug 11:12
Compare
Choose a tag to compare

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

04 Aug 12:27
Compare
Choose a tag to compare

Bug fixes and minor improvements

  • Use variable-code as variable-label if no label is given. (#173)
  • Quote values of text keywords even if their text is a number. (#164)

pxmake 0.8.0

20 Jul 15:52
Compare
Choose a tag to compare

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 and metamake. (#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

23 Jun 13:19
4864633
Compare
Choose a tag to compare

New features

  • Make pxmake and metamake read and write to .rds files.

Bug fixes and minor improvements

  • Validate arguments to pxmake and metamake 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

31 May 09:20
Compare
Choose a tag to compare

Breaking changes

  • Rewrite pxmake and metamake to improve readability.

pxmake 0.5.2

17 Apr 10:53
Compare
Choose a tag to compare

Bug fixes and minor improvements

  • Remove need for awkward quoting in metadata with multiple languages.
    Previously this has to be written as en","da","kl, but can now be en,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

31 Mar 16:21
Compare
Choose a tag to compare

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

28 Mar 13:51
Compare
Choose a tag to compare

Breaking changes

  • Rename 'General' metadata sheet to 'Table'. (#85)
  • Rename argument pxmake(source_data_path) to source_data (#71)
  • Rename argument metmake(out_path) to xlsx_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 to metamake() 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 to figures_ in metadata created by metamake(). (#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)