Description Usage Arguments Value Examples
Creates a package matching the given description and dependencies.
1 | create_package(name, title, dependencies, path = ".")
|
name |
the package name |
title |
the package title |
dependencies |
a data.frame of package dependencies, including the package names, comparators, and versions |
path |
the path in which to create the package. Defaults to the current path |
the package, as constructed using the 'devtools' 'as.package' function
1 2 3 4 | # Create a simple package with no dependencies:
path <- tempdir()
name <- 'simplepackage'
package <- create_package(name, 'A simple mock package', data.frame(), path)
|
Loading required package: devtools
Loading required package: usethis
Attaching package: ‘rbundler’
The following object is masked from ‘package:devtools’:
install_version
The following object is masked from ‘package:usethis’:
create_package
Warning message:
In file(con, "r") : cannot open file '/proc/stat': Permission denied
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.