listMechs: listMechs(option_fields = c("name", "id", "code"),...

View source: R/listMechs.R

listMechsR Documentation

listMechs(option_fields = c("name", "id", "code"), combo_fields = "id", d2_session = dynGet("d2_default_session",inherits = TRUE)

Description

Returns a dataframe with all mechanisms a user has access to. For an implementation example see: https://github.com/flopez-bao/shinyapps-datimutils-security-example-usgandpartners

Usage

listMechs(
  option_fields = c("name", "id", "code"),
  combo_fields = "id",
  d2_session = dynGet("d2_default_session", inherits = TRUE)
)

Arguments

option_fields

fields passed to the getMetaData endpoint.

combo_fields

fields passed to getCatOptionCombos call.

d2_session

the d2Session object, default is "d2_default_session"


pepfar-datim/datimutils documentation built on Nov. 20, 2023, 7:58 a.m.