init_project | R Documentation |
scdrake
project.Initialize a new scdrake
project.
init_project(
dir = ".",
use_rstudio = TRUE,
set_active_project = TRUE,
set_wd = TRUE,
download_example_data = FALSE,
ask = TRUE,
verbose = getOption("scdrake_verbose"),
...
)
dir |
A character scalar: path to directory in which the project will be created.
If |
use_rstudio |
A logical scalar: if |
set_active_project |
A logical scalar: if |
set_wd |
A logical scalar: if |
download_example_data |
A logical scalar: if |
ask |
A logical scalar: if |
verbose |
A logical scalar: if |
... |
Passed to |
This function will:
Create the project's root directory.
(Optional) Switch the current working directory to the project's root and call here::i_am()
.
Copy config, RMarkdown, and _drake_*.R
files.
Create an empty .here
file. This ensures that the here package will be able to find
the project's root directory in case an RStudio project is not initialized.
Check whether the yq
tool is available in PATH
environment variable.
(Optional) Download the example data using download_pbmc1k()
and download_pbmc3k()
.
(Optional) Initialize an RStudio project and set it as the active project.
## Not run:
init_project("my_project")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.