drake (version 7.3.0)

load_main_example: Deprecated: load the main example.

Description

The main example lives at https://github.com/wlandau/drake-examples/tree/master/main. Use drake_example("main") to download its code. The chapter of the user manual at https://ropenscilabs.github.io/drake-manual/main.html also walks through the main example. This function also writes/overwrites the files report.Rmd and raw_data.xlsx.

Usage

load_main_example(envir = parent.frame(), report_file = "report.Rmd",
  overwrite = FALSE, force = FALSE)

Arguments

envir

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

report_file

Where to write the report file report.Rmd.

overwrite

Logical, whether to overwrite an existing file report.Rmd

force

Deprecated.

Value

A drake_config() configuration list.

Details

Deprecated 2018-12-31.

Examples

Run this code
# NOT RUN {
# The code for this example is hosted at
# https://github.com/wlandau/drake-examples/tree/master/main
# You can download it iwth drake_example("main")
# or watch a video tutorial about it at
# https://ropenscilabs.github.io/drake-manual/.
# }

Run the code above in your browser using DataCamp Workspace