Learn R Programming

drake (version 4.2.0)

load_basic_example: Function load_basic_example

Description

Loads the basic example into your workspace (or the environment you specify). Also writes/overwrites the file report.Rmd. For a thorough walkthrough of how to set up this example, see the quickstart vignette: vignette('quickstart'). Alternatively, call example_drake('basic') to generate an R script that builds up this example step by step.

Usage

load_basic_example(envir = parent.frame())

Arguments

envir

The environment to load the example into. Defaults to your workspace. For an insulated workspace, set envir = new.env(parent = globalenv()).

Examples

Run this code
# NOT RUN {
load_basic_example()
deps(reg1)
deps(my_plan$command[1])
deps(my_plan$command[4])
plot_graph(my_plan)
make(my_plan)
clean(destroy = TRUE)
unlink('report.Rmd')
# }

Run the code above in your browser using DataLab