Rbundler manages a project-specific library for dependency package installation. By specifying dependencies in a DESCRIPTION file in a project's root directory, one may install and use dependencies in a repeatable fashion without requiring manual maintenance. rbundler creates a project-specific R library in `PROJECT_ROOT/.Rbundle` (by default) and a project-specific `R_LIBS_USER` value, set in `PROJECT_ROOT/.Renviron`. It supports dependency management for R standard "Depends", "Imports", "Suggests", and "LinkingTo" package dependencies. rbundler also attempts to validate and install versioned dependencies, such as ">=", "==", "<=". Note that, due to the way R manages package installation, differing nested versioned dependencies are not allowed. For example, if your project depends on packages A (== 1), and B (== 2), but package A depends on B (== 1), then a nested dependency violation will cause rbundler to error out.
Adds support for installing versioned dependencies for source-type packages.
Retrieves the set of available packages from the current repository's root and
archive (if an archive exists, e.g. in CRAN-like repositories), then
cross-references these packages with the bundled package dependencies, determining
which package versions to install. Constructs a list of URLs of packages to
install, and uses the devtools
utility function install_url
to install them.
Removes repos
option from the main call to bundle
. The caller should now have
the repository set in their environment (i.e. using `options(repos='http://myrepo')
Re-introduces integration tests and adds mock package creation utilities: create_mock_packages
Adds utility functions for discoery of package versions: find_available_versions
Supports CRAN-like Archive directories, as well as single-directory repositories.
Bug Fix: Append to R_LIBS_USER, instead of overwriting it. Extracts and exports two new bundle environment helpers.
Removes libs
option.
Uses a combination of .Renviron
and PROJECT_ROOT/.Rbundle
library location.
Update devtools dependency to 0.7.1 and R dependency to 2.15.1.
NEW FEATURES
bundle
function installs the package and all of it's dependencies into a
bundle library.BUNDLE PATHS
bundle
installs packages into PROJECT_PATH/.Rbundle
by default.