packOPUDataPack: Pack an OPU Data Pack

View source: R/packOPUDataPack.R

packOPUDataPackR Documentation

Pack an OPU Data Pack

Description

Takes an OPU Data Pack template, combines it with data pulled from DATIM API, and produces an OPU Data Pack ready for distribution.

Usage

packOPUDataPack(
  d,
  undistributed_mer_data = NULL,
  expand_formulas = FALSE,
  d2_session = dynGet("d2_default_session", inherits = TRUE)
)

Arguments

d

Datapackr sidecar object

undistributed_mer_data

Data from the d$datim$UndistributedMER dataset that can be provided while generating an OPU tool such that the targets to be distributed will be sourced from this file.

d2_session

DHIS2 Session id. R6 datimutils object which handles authentication with DATIM.

Value

Exports an OPU Data Pack to Excel within output_folder.


pepfar-datim/datapackr documentation built on April 14, 2024, 10:35 p.m.