create {devtools} | R Documentation |
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.
create(path, description = getOption("devtools.desc"), check = FALSE, rstudio = TRUE, quiet = FALSE) setup(path = ".", description = getOption("devtools.desc"), check = FALSE, rstudio = TRUE, quiet = FALSE)
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 |
rstudio |
Create an RStudio project file?
(with |
quiet |
if |
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.
Text with package.skeleton
## 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) ## End(Not run)