drake (version 7.3.0)

target: Define custom columns in a drake_plan().

Description

Not a user-side function. Please use from within drake_plan() only.

Usage

target(command = NULL, ...)

Arguments

command

The command to build the target.

...

Named arguments specifying non-standard fields of the workflow plan.

Value

A one-row workflow plan data frame with the named arguments as columns.

See Also

drake_plan(), make()

Examples

Run this code
# NOT RUN {
# Use target() to create your own custom columns in a drake plan.
# See ?triggers for more on triggers.
drake_plan(
  website_data = target(
    download_data("www.your_url.com"),
    trigger = "always",
    custom_column = 5
  ),
  analysis = analyze(website_data)
)
# }

Run the code above in your browser using DataCamp Workspace