create_bcgov_project | R Documentation |
Create a project directory structure for a new bcgov R project in your current working directory.
create_bcgov_project(
path = ".",
rmarkdown = FALSE,
licence = "apache2",
coc_email = get_coc_email(),
dir_struct = getOption("bcgovr.dir.struct", default = NULL),
rstudio = rstudioapi::isAvailable(),
open = TRUE
)
path |
Path to the directory in which to initialize the project.
Default |
rmarkdown |
Should an Rmarkdown file be added to the repository
with its corresponding markdown file? Default |
licence |
Which licence to apply? Default is Apache 2.0 ( |
coc_email |
Contact email address(es) for the Code of Conduct. It is
recommended that you save this setting by adding a line like:
|
dir_struct |
Alternative project directory structure. This should be specified as
a character vector of directory (i.e. folders) and file paths, relative to the root of the project.
Directories should be identified by having a trailing forward-slash (e.g., The default is: This can also be set as an option |
rstudio |
If |
open |
If TRUE and in RStudio, the new project is opened in a new instance, if possible, or is switched to, otherwise. |
## Not run:
bcgovr::create_bcgov_project()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.