MakeWorkflowList()
is a utility function that creates a list of workflows for use in KRI pipelines.
Usage
MakeWorkflowList(
strNames = NULL,
strPath = NULL,
bExact = FALSE,
bRecursive = TRUE
)
Arguments
- strNames
array of character
List of workflows to include. NULL (the default) includes all workflows in the specified locations.
- strPath
character
The location of workflow YAML files. If package is specified, function will look in /inst
folder.
- bExact
logical
Should strName matches be exact? If false, partial matches will be included. Default FALSE.
- bRecursive
logical
Find files in nested folders? Default TRUE
Value
list
A list of workflows with workflow and parameter metadata.
Examples
# use default
workflow <- MakeWorkflowList()
# get specific workflow files
workflow <- MakeWorkflowList(strNames = c("kri0001", "kri0005", "cou0003"))