Learn R Programming

usethis (version 1.1.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"). Arguments that take a list

rstudio

If TRUE, run use_rstudio().

open

If TRUE, will automatically open