View source: R/unPackDataPack.R
unPackDataPack | R Documentation |
Processes a submitted Data Pack (in .xlsx format) by identifying integrity issues, checking data against DATIM validations, and extracting data.
unPackDataPack(d, d2_session = dynGet("d2_default_session", inherits = TRUE))
d |
Datapackr object |
d2_session |
DHIS2 Session ID |
Executes the following operations in relation to a submitted Data Pack:
Performs integrity checks on file structure;
Runs DATIM validation tests;
Extracts SUBNAT and IMPATT data as a DATIM import file;
If a Data Pack is submitted as an XLSB formatted document, you must open & re-save as an XLSX in order to process it with this function.
Once this function is called, it will present a dialog box where you can select the file location of the Data Pack to be processed.
If Operating Unit name
and id
in the Data Pack's Home
tab do not match based on cross-reference with DATIM organization
hierarchies, you will be prompted to manually select the correct Operating
Unit associated with the Data Pack to be processed. Enter this information in
the Console as directed.
The final message in the Console prints all warnings identified in the Data Pack being processed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.