Skip to contents

[Stable]

loadExample() is a convenience LoadData hook for RunWorkflow() and RunWorkflows(). If an initData.R file exists in the same folder as the workflow YAML, it sources that script and calls initData() to get starter lData.

The return value is merged with incoming lData so caller-provided values override defaults from initData().

Usage

loadExample(lWorkflow, lConfig = NULL, lData = NULL)

Arguments

lWorkflow

list Workflow object. Must include path (set by MakeWorkflowList()) to locate initData.R.

lConfig

list Unused. Included to match the LoadData hook interface expected by RunWorkflow().

lData

list Existing input data.

Value

list Data to use as workflow input.