Creates a package matching the given description and dependencies.

Share:

Description

Creates a package matching the given description and dependencies.

Usage

1
create_package(name, title, dependencies, path = ".")

Arguments

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

Value

the package, as constructed using the 'devtools' 'as.package' function

Examples

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)