createKeychainInfo: Create Keychain Info for use in DataPack object.

View source: R/createKeychainInfo.R

createKeychainInfoR Documentation

Create Keychain Info for use in DataPack object.

Description

Creates Keychain info needed for use across many datapackr functions.

Usage

createKeychainInfo(
  submission_path = NULL,
  tool = NULL,
  season = NULL,
  country_uids = NULL,
  cop_year = NULL,
  d2_session = NULL
)

Arguments

submission_path

Local path to the file to import.

tool

Type of tool this function will create or interact with. Either OPU Data Pack or Data Pack

season

Either COP or OPU.

country_uids

Unique IDs for countries to include in the Data Pack. For full list of these IDs, see datapackr::valid_OrgUnits.

cop_year

COP Year to use for tailoring functions. Remember, FY22 targets = COP21.

d2_session

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

Value

DataPack object


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