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)
TRUE
, will automatically run check
use_rstudio
)package.skeleton
# 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)
Run the code above in your browser using DataLab