loadDataPack | R Documentation |
loadDataPack
returns a DataPack object conserving styles and
formatting of the original Data Pack .xlsx file, as well as other metadata
necessary for processing and analyzing data in the Data Pack.
loadDataPack(
submission_path = NULL,
tool = NULL,
country_uids = NULL,
cop_year = NULL,
load_wb = FALSE,
load_sheets = FALSE,
pzns = NULL,
d2_session = dynGet("d2_default_session", inherits = TRUE)
)
submission_path |
Local path to the file to import. |
tool |
Type of tool this function will create or interact with. Either
|
country_uids |
Unique IDs for countries to include in the Data Pack.
For full list of these IDs, see |
cop_year |
COP Year to use for tailoring functions. Remember, FY22 targets = COP21. |
load_wb |
Should the datapack be loaded as an openxlsx object? |
load_sheets |
Logical. Should all data sheets be loaded too? |
pzns |
A object containing prioiritization information by organisation unit to be added to the DataPack object. |
d2_session |
DHIS2 Session id. R6 datimutils object which handles authentication with DATIM. |
DataPack object.
Scott Jackson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.