Both functions change the active project so that subsequent use_*() calls
will affect the project that you've just created. See proj_set() to
manually reset it.
create_package(path, fields = getOption("devtools.desc"),
rstudio = rstudioapi::isAvailable(), open = interactive())create_project(path, rstudio = rstudioapi::isAvailable(),
open = interactive())
A path. If it exists, it will be used. If it does not exist, it will be created (providing that the parent path exists).
A named list of fields to add to DESCRIPTION,
potentially overriding the defaults. If NULL, retrieved from
getOption("usethis.description"), and (for backward compatibility)
from getOption("devtools.desc").
If TRUE, call use_rstudio() to make new package or project
into an RStudioProject.
If TRUE and in RStudio, new project will be opened in a new
instance, if possible, or will be switched to, otherwise. If TRUE and not
in RStudio, working directory will be set to the new project.