This function adds capr cohorts to a subfolder in input/cohortsToCreate. The subfolder is specified by the type.

addCohortsCapr(
  folderName,
  caprList,
  cohortFolder = here::here("input/cohortsToCreate")
)

Arguments

folderName

the name of the folder to add the cohorts

caprList

a list of capr objects to upload into the input/cohortsToCreate folder of the project

cohortFolder

the input/cohortsToCreate folder to save the cohorts, defaults to the folder within the active project binding