Learn R Programming

devtools (version 2.4.6)

create: Create a package

Description

Create a package

Usage

create(path, ..., open = FALSE)

Value

The path to the created package, invisibly.

Arguments

path

A path. If it exists, it is used. If it does not exist, it is created, provided that the parent path exists.

...

Additional arguments passed to usethis::create_package()

open

If TRUE, activates the new project:

  • If using RStudio or Positron, the new project is opened in a new session, window, or browser tab, depending on the product (RStudio or Positron) and context (desktop or server).

  • Otherwise, the working directory and active project of the current R session are changed to the new project.