These functions create an R project:
create_package() creates an R package
create_project() creates a non-package project, i.e. a data analysis
Both functions can be called on an existing project; you will be asked before any existing files are changed.
create_package( path, fields = NULL, rstudio = rstudioapi::isAvailable(), check_name = TRUE, open = interactive() ) create_project(path, rstudio = rstudioapi::isAvailable(), open = interactive())
A path. If it exists, it is used. If it does not exist, it is created, provided that the parent path exists.
A named list of fields to add to
Whether to check if the name is valid for CRAN and throw an error if not
Path to the newly created project or package, invisibly.