Learn R Programming

rbundler (version 0.3.7)

create_package_description: A Utility function for creating rbundler scenarios.

Description

A Utility function for creating rbundler scenarios.

Usage

create_package_description(name, title, dependencies)

Arguments

name
the name of the package to create
title
the title of the package to create
dependencies
a data.frame with dependency type, package, compare, version set.

Examples

Run this code
name <- 'simpledependency'
title <- 'A mock package with a single dependency.'
dependencies <- data.frame(type = c('Depends', 'Suggests'), package=c('foo', 'bar'),
                           compare=c(NA, '=='), version=c(NA, '1'))
description <- create_package_description(name, title, dependencies)

write(description, file='') # Write the output to the console

Run the code above in your browser using DataLab