Description Usage Arguments Value Examples
View source: R/func_new-project.R
Create New Project
1 2 3 4 5 6 | new_project(
path,
template,
rstudio = rstudioapi::isAvailable(),
open = rlang::is_interactive()
)
|
path |
A file path for where the new project should be created. |
template |
The path to a YAML file containing the project structure. |
rstudio |
Logical indicating whether RStudio should be used for the new
project. By default, it detects if RStudio is currently running and, if
|
open |
Logical indicating whether the new project should be opened. By
default, it checks whether the function is run interactively with
rlang::is_interactive. If |
Path to the newly created project (invisibly).
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# Bare bones project with no existing content
new_project(
path = "~/Desktop/templatr-demo/",
template = template_demo_project()
)
# Project with files that have some structure
new_project(
path = "~/Desktop/templatr-demo/",
template = template_demo_project("demo-proj-source")
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.