create_package: Creates a package matching the given description and...

Description Usage Arguments Value Examples

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)

Example output

Loading required package: devtools
Loading required package: usethis

Attaching package:rbundlerThe following object is masked frompackage:devtools:

    install_version

The following object is masked frompackage:usethis:

    create_package

Warning message:
In file(con, "r") : cannot open file '/proc/stat': Permission denied

rbundler documentation built on May 2, 2019, 11:27 a.m.