View source: R/create_project.R
create_project | R Documentation |
Creates a pre-populated project for DfE R
create_project(
path,
init_renv = TRUE,
include_structure_for_pkg = FALSE,
create_publication_proj = FALSE,
include_github_gitignore,
...
)
path |
Path of the new project |
init_renv |
Boolean; initiate renv in the project. Default is set to true. |
include_structure_for_pkg |
Boolean; Additional folder structure for package development. Default is set to false. |
create_publication_proj |
Boolean; Should the folder structure be for a publication project. Default is set to false. |
include_github_gitignore |
Boolean; Should a strict .gitignore file for GitHub be created. |
... |
Additional parameters, currently not used |
This function creates a new project with a custom folder structure.
It sets up the R/
folder and template function scripts,
initializes {testthat}
and adds tests for the function scripts,
builds the core project structure, creates a .gitignore file,
creates a readme, and optionally initializes {renv}
.
No return values, the project and its contents are created
## Not run:
# Call the function to create a new project
dfeR::create_project(
path = "C:/path/to/your/new/project",
init_renv = TRUE,
include_structure_for_pkg = FALSE,
create_publication_proj = FALSE,
include_github_gitignore = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.