create_mock_packages: Creates a series of mock packages, useful for testing and...

Description Usage Arguments Value Examples

View source: R/create_mock_packages.r

Description

Creates a series of mock packages, useful for testing and experimentation.

Usage

1
create_mock_packages(path, dependency, repos = getOption("repos"))

Arguments

path

the path in which to create the mock packages

dependency

the dependency to create in the mock packages

repos

the repositories to use for the contrib.url path

Value

a list of named packages, each of which corresponds to the devtools 'as.package' object

Examples

1
2
3
4
path <- tempdir()
repos <- 'http://cran.rstudio.com'
dependency <- mock_dependency('RCurl', repos)
create_mock_packages(path, dependency, repos)

rbundler documentation built on May 30, 2017, 2:59 a.m.