Attempts to run a single assessment (lWorkflow
) using shared data (lData
) and metadata (lMapping
).
Calls RunStep
for each item in lWorkflow$workflow
and saves the results to lWorkflow
.
Arguments
- lWorkflow
list
A named list of metadata defining how the workflow should be run.- lData
list
A named list of domain-level data frames.- bReturnResult
boolean
should only the result from the last step (lResults
) be returned? If false, the full workflow (includinglResults
) is returned. Default isTRUE
.- bKeepInputData
boolean
should the input data be included inlData
after the workflow is run? Only relevant when bReturnResult is FALSE. Default isTRUE
.
Value
Object containing the results of the workflow's last step (if bLastResult
is TRUE
) or the full workflow object (if bReturnResults
is TRUE
) or the full workflow object (if bReturnResults
is FALSE
).
list
contains just lData if bReturnData
is TRUE
, otherwise returns the full lWorkflow
object.
Examples
if (FALSE) { # \dontrun{
lAssessments <- MakeWorkflowList("kri0001")
lData <- list(
dfAE = clindata::rawplus_ae,
dfCONSENT = clindata::rawplus_consent,
dfDISP = clindata::rawplus_dm,
dfIE = clindata::rawplus_ie,
dfLB = clindata::rawplus_lb,
dfPD = clindata::ctms_protdev,
dfSUBJ = clindata::rawplus_dm
)
wf_mapping <- MakeWorkflowList("mapping")
lMapped <- RunWorkflow(wf_mapping, lData)$lData
output <- map(lAssessments, ~ RunWorkflow(., lMapped))
} # }