Skip to content

Releases: pepfar-datim/datapackr

datapackr v5.1.1

20 Jan 16:46
7c9b28c
Compare
Choose a tag to compare

Bug fixes

  • This maintenance release fixes a bug with unPackCountryUIDs that was introduced in v5.0.1 due to linting. This bug preventing the processing of COP and OPU tools in datapackr-app as well as broke the createAnalytics function for regional tools.

datapackr v5.1.0

18 Jan 16:57
3cdefe4
Compare
Choose a tag to compare

Breaking changes

  • The function packForDATIM_UndistributedMER now takes in arguments for MER data and COP year instead of an entire d object and returns a table of undistributed MER data rather than return a d object with data nested under d$data$UndistributedMER.

New features

  • Updates COP22 Data Pack template and processing code.
    • Removes "Summary" tab from COP22 tools and processing code.
    • Includes "Not PEPFAR" column to PSNUxIM tab and adds support for processing this data.
      Drops dataf from this column before creating the analytics table and MER exports.
  • Adds item to d object for unallocated IMs nested under d$info$unallocatedIMs.

Minor improvements and fixes

  • Additional handling for default Category Option Combos.
  • Adds dataset UIDs for COP22 to the getDatasetUids function.
  • Updates getMapDataPack_DATIM_DEs_COCs to include handling for COP22 map.
  • Adds test for getDatasetUids
  • Adds explicit comparison checks when updating schemas and Data Pack-DATIM mapping files using the waldo package.

datapackr v5.0.3

06 Jan 19:50
bd4ed1b
Compare
Choose a tag to compare

New features

  • Initial launch of COP22 Data Pack processing!

Breaking changes

  • Now requires R version 4.1.1 or higher.

Minor improvements and fixes

  • Updated and improved documentation of datasets in datapackr.
  • Improves handling of default categoryOptionCombo.
  • Improves documentation of packDataPackSheet, packSheets, and prepareSheetData.

Deprecated features

  • loginToDATIM is retired in favor of the same function in datimutils. All
    instances of this function being invoked have been replaced appropriately.
    • The functions DHISLogin, GetCredentialsFromConsole, LoadConfigFile,
      and ValidateConfig were not exported and are now deprecated as well.
      They were previously only used by loginToDATIM.
  • isLoggedIn is retired as it was only used in getMechList and
    loginToDATIM.

datapackr v5.0.2

09 Dec 15:21
6c66b35
Compare
Choose a tag to compare

Bug fixes

  • Resolves a bug with packOPUDataPack where createDataPack was not
    implemented correctly in version 5.0.1.
  • Patches a bug with getOPUDataFromDATIM where getCOPDataFromDATIM returns
    a dataframe where the default Category Option Combo UID is listed as default
    rather than the appropriate DATIM UID. This will be removed in favor of a more
    permanent solution in future updates.

New features

  • Significantly improves handling of parameter checks and standardizes their
    validation and defaults. Documentation for these checks is also added.
  • Adds functionality for producing COP22 Beta Packs and test data.

Breaking changes

  • Removes getDataPackSchema in favor of consolidated pick_schema.

Deprecated features

  • getDataPackSchema has been deprecated in favor of pick_schema and has been
    replaced in the two locations where it was previously used.

Minor improvements and fixes

  • Improves and updates tests related to parameter checks and schemas.
  • Introduces many new small utilities functions such as %missing% and %||%.
  • Improves automation of Data Pack Template/schema validation.

datapackr v5.0.1

05 Nov 19:30
5e9c45a
Compare
Choose a tag to compare

datapackr 5.0.1

New features

  • loadDataPack is a new function that returns a Data Pack object conserving
    styles and formatting of the original Data Pack .xlsx file, as well as other
    metadata necessary for processing and analysing data in the Data Pack.
  • .testInvalidIndicatorCodes was previously an internal function that is now
    documented and exported by the package. This function tests for invalid
    indicator codes in a d Datapackr object.
  • datapack_cogs is a new dataset containing Datapack Category option groups
    (id and name) along with their individual category options (id and name) as a
    nested data frame.

Breaking changes

  • createWorkbook has been renamed createDataPack to deconflict with the
    openxlsx function createWorkbook. This function now returns a d
    datapackr object rather than an openxlsx workbook object.
  • The d2_session argument has been removed from the following functions:
    • check_params
    • createDataPack (previously createWorkbook)
    • unPackSchema_datapack

Minor improvements and fixes

  • unPackSchema_datapack was modified in the following ways:
    • Now uses the datapack_cogs data set rather than making a query to DATIM.
    • Inherits parameters from datapackr_params.
  • writeHomeTab was modified in the following ways:
    • The wb and datapack_name arguments default to NULL.
    • Checks and assigns parameters using the check_params function.
    • Lists country names on the Home tab in addition to Country UIDs.
  • Minor corrections were made to Excel functions written by packSNUxIM that
    had been erroneously changed during previous linting.
  • Internal changes were made to variable names and functions used inside the
    check_params function.
  • A new file has been added to data-raw to generate the datapack_cogs
    data set.
  • Documentation is now provided for the cop20OPU_data_pack_schema data set.

Final COP21 release

16 Jul 15:38
Compare
Choose a tag to compare

Not including COP21 OPUs

COP20 final release

06 Nov 15:23
620d3a7
Compare
Choose a tag to compare

This is the final release before merging COP21 related code, and therefore the final reference version for COP20.

3.0.3 first maintenance release

21 Feb 09:36
411f7ac
Compare
Choose a tag to compare
imbalanced distribution test fix (#121)

We were comparing a rounded value with an unrounded value. We need to treat LHS and RHS symetrically. NO rounding could lead to floating point differences, so I rounded both.

Second major COP2020 data packr release

20 Feb 12:08
a8a698f
Compare
Choose a tag to compare
3.0.3

Update package last updated date

First Production release COP2020

14 Feb 08:50
471944c
Compare
Choose a tag to compare

Includes:

  1. Data pack initial generation
  2. Structural data pack checks functional in the app
  3. Initial PSNUxIM tab packing