create

0th

Percentile

Creates a new package, following all devtools package conventions.

Similar to package.skeleton, except that it only creates the standard devtools directory structures; it doesn't try and create source code and data files by inspecting the global environment.

Usage
create(path, description = getOption("devtools.desc"), check = FALSE,
  rstudio = TRUE, quiet = FALSE)

setup(path = ".", description = getOption("devtools.desc"), check = FALSE, rstudio = TRUE, quiet = FALSE)

Arguments
path

location to create new package. The last component of the path will be used as the package name.

description

list of description values to override default values or add additional values.

check

if TRUE, will automatically run check

rstudio

Create an RStudio project file? (with use_rstudio)

quiet

if FALSE, the default, prints informative messages.

Details

create requires that the directory doesn't exist yet; it will be created but deleted upon failure. setup assumes an existing directory from which it will infer the package name.

See Also

Text with package.skeleton

Aliases
  • create
  • setup
Examples
# NOT RUN {
# Create a package using all defaults:
path <- file.path(tempdir(), "myDefaultPackage")
create(path)

# Override a description attribute.
path <- file.path(tempdir(), "myCustomPackage")
my_description <- list("Maintainer" =
  "'Yoni Ben-Meshulam' <yoni@opower.com>")
create(path, my_description)
# }
Documentation reproduced from package devtools, version 1.13.5, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.