Learn R Programming

rbundler (version 0.3.7)

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

Description

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

Usage

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

Run this code
path <- tempdir()
repos <- 'http://cran.rstudio.com'
dependency <- mock_dependency('RCurl', repos)
create_mock_packages(path, dependency, repos)

Run the code above in your browser using DataLab