Learn R Programming

rbundler (version 0.3.4)

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

Description

Creates a package matching the given description and dependencies.

Usage

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

Run this code
# Create a simple package with no dependencies:
path <- tempdir()
name <- 'simplepackage'
package <- create_package(name, 'A simple mock package', data.frame(), path)

Run the code above in your browser using DataLab