writePSNUxIM: Write PSNUxIM Tab

View source: R/writePSNUxIM.R

writePSNUxIMR Documentation

Write PSNUxIM Tab

Description

Checks a Data Pack for need of new or appended PSNUxIM data, then writes this into the Data Pack supplied. unPackTool must be run as prerequisite.

Usage

writePSNUxIM(
  d,
  snuxim_model_data_path = NULL,
  output_folder = NULL,
  d2_session = dynGet("d2_default_session", inherits = TRUE),
  append = TRUE,
  use_template = FALSE
)

Arguments

d

Datapackr sidecar object

snuxim_model_data_path

Export from DATIM needed to allocate data across mechanisms in the PSNUxIM tab

output_folder

Local folder where you would like your Data Pack to be saved upon export.

d2_session

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

append

If TRUE append rows to the existing DataPack otherwise, output a Missing PSNUxIM targets workbook.

Value

d


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