View source: R/drake_example.R
drake_example | R Documentation |
drake
project.
The drake_example()
function downloads a
folder from https://github.com/wlandau/drake-examples
.
By default, it creates a new folder with the example name
in your current working directory. After the files are written,
have a look at the enclosed README
file.
Other instructions are available in the files at
https://github.com/wlandau/drake-examples
.
drake_example(
example = "main",
to = getwd(),
destination = NULL,
overwrite = FALSE,
quiet = TRUE
)
example |
Name of the example.
The possible values are the names of the folders at
|
to |
Character scalar,
the folder containing the code files for the example.
passed to the |
destination |
Deprecated; use |
overwrite |
Logical, whether to overwrite an existing folder with the same name as the drake example. |
quiet |
Logical, passed to |
NULL
drake_examples()
, make()
## Not run:
isolate_example("Quarantine side effects.", {
if (requireNamespace("downloader")) {
drake_examples() # List all the drake examples.
# Sets up the same example from load_mtcars_example()
drake_example("mtcars")
# Sets up the SLURM example.
drake_example("slurm")
}
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.