template | R Documentation |
Generate a project template directory.
template(
project_name,
path = ".",
type = projectTypes(),
renv = TRUE,
docker = TRUE,
git = TRUE,
github = FALSE,
private = FALSE,
github_actions = FALSE,
force = FALSE,
start = TRUE
)
project_name |
project name/title |
path |
target file path for project directory |
type |
project type. Should be one returned by |
renv |
add renv infrastructure for reproducible a R package environment |
docker |
TRUE/FALSE. Create project infrastructure for building a docker container to compile the project. |
git |
TRUE/FALSE. Initialise a Git repository? |
github |
TRUE/FALSE. Create a GitHub repository? Ignored if argument |
private |
TRUE/FALSE. Should the GitHub repository be private? Evaluated only if arguments |
github_actions |
TRUE/FALSE. Add Github actions infrastructure? Evaluated only if arguments |
force |
force project creation if project directory already exists |
start |
TRUE/FALSE. Should the project be automatically activated in a new RStudio session? |
## Not run:
template('A new project',
type = 'report',
github = FALSE,
start = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.