Last data update: 2014.03.03
|
R: Creates a series of mock packages, useful for testing and...
create_mock_packages | R Documentation |
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
path <- tempdir()
repos <- 'http://cran.rstudio.com'
dependency <- mock_dependency('RCurl', repos)
create_mock_packages(path, dependency, repos)
Results
|