Load a blueprint from a script file

load_blueprint(plan, file)

load_blueprints(plan, directory = here::here("blueprints"), recurse = FALSE)

Arguments

plan

A drake plan

file

A path to a script file

directory

A path to a directory with script files that are blueprints. Defaults to the "blueprints" directory at the root of the current R project.

recurse

Recursively loads blueprints from a directory if TRUE

Value

A drake_plan with attached blueprints

Empty blueprint folder

By default, blueprintr ignore empty blueprint folders. However, it may be beneficial to warn users if folder is empty, particularly during project setup. This helps identify any potential misconfiguration of drake plan attachment. To enable these warnings, set option(blueprintr.warn_empty_blueprints_dirs = TRUE).