get_example_plan_simple: An Example of a Drake Plan

Description Usage Format Examples

View source: R/plans.R

Description

An example of a drake_plan that contains several targets and commands, including processing input and output files.

Usage

1

Format

Returns a drake_plan object of class tbl_df with the following targets:

raw_data:

iris data from an .xlsx file

ready_data:

a prepared version of the raw_data

hist:

a histogram plot created with ggplot2

fit:

a linear model of the data (Sepal.Width as a function of Petal.Width and Species)

report:

a html report document

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Print the plan

print(get_example_plan_simple())


# Make the plan, load a target, print the target

## Not run: 

make(get_example_plan_simple())

loadd(fit)

print(fit)

## End(Not run)

tiernanmartin/drakepkg documentation built on March 11, 2020, 3:11 a.m.