load_basic_example
Use load_mtcars_example()
instead.
load_basic_example(envir = parent.frame(), seed = NULL, cache = NULL,
report_file = "report.Rmd", overwrite = FALSE, to = report_file,
verbose = drake::default_verbose(), force = FALSE)
The environment to load the example into.
Defaults to your workspace.
For an insulated workspace,
set envir = new.env(parent = globalenv())
.
integer, the root pseudo-random seed to use for your project.
To ensure reproducibility across different R sessions,
set.seed()
and .Random.seed
are ignored and have no affect on
drake
workflows. Conversely, make()
does not change .Random.seed
,
even when pseudo-random numbers are generated.
On the first call to make()
or drake_config()
, drake
uses the random number generator seed from the seed
argument.
Here, if the seed
is NULL
(default), drake
uses a seed
of 0
.
On subsequent make()
s for existing projects, the project's
cached seed will be used in order to ensure reproducibility.
Thus, the seed
argument must either be NULL
or the same
seed from the project's cache (usually the .drake/
folder).
To reset the random number generator seed for a project,
use clean(destroy = TRUE)
.
Optional storr
cache to use.
where to write the report file report.Rmd
.
logical, whether to overwrite an
existing file report.Rmd
deprecated, where to write the dynamic report source file
report.Rmd
logical or numeric, control printing to the console.
Use pkgconfig
to set the default value of verbose
for your R session:
for example, pkgconfig::set_config("drake::verbose" = 2)
.
FALSE
:print nothing.
TRUE
:print only targets to build.
in addition, print checks and cache info.
in addition, print any potentially missing items.
in addition, print imports. Full verbosity.
logical, whether to force the loading of a non-back-compatible cache from a previous version of drake.
A config list, as in load_mtcars_example()
.
Deprecated on 2018-04-21.
# NOT RUN {
# See ?load_mtcars_example for examples.
# }
Run the code above in your browser using DataLab