usethis (version 1.2.0)

create_package: Create a new package or project

Description

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.

Usage

create_package(path, fields = getOption("devtools.desc"),
  rstudio = rstudioapi::isAvailable(), open = interactive())

create_project(path, rstudio = rstudioapi::isAvailable(), open = interactive())

Arguments

path

A path. If it exists, it will be used. If it does not exist, it will be created (providing that the parent path exists).

fields

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").

rstudio

If TRUE, call use_rstudio() to make new package or project into an RStudioProject.

open

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.