Learn R Programming

rbundler (version 0.3.7)

Rbundler manages an application's dependencies systematically and repeatedly.

Description

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.

Copy Link

Version

Install

install.packages('rbundler')

Monthly Downloads

73

Version

0.3.7

License

GPL-3

Last Published

May 8th, 2014

Functions in rbundler (0.3.7)

validate_installed_package

Checks whether a package has already been installed. If it has, and if the version corresponds to the required package version, then it returns TRUE. If it has been installed and the version does not correspond to the required version, then it throws an exception. Otherwise, it returns false.
read_archive_rds

Loads archive from CRAN-like repositories. Returns empty list for non-CRAN (i.e. flat) repositories.
compare_versions

Compares the requested version to the available version using the compare operator.
mock_dependency

Creates a mock dependency - corresponding to a real package - for use in testing and experimentation.
rbundler

A package dependency management utility.
update_renviron_file

Updates a .Renviron file in the given path.
update_current_environment

Updates the current environment.
construct_r_libs_user

Constructs a new R_LIBS_USER setting using the current libraries and the new bundle library.
dependency_clauses

Creates the `Depends:` clause by concatenating individual packages and adding their compare clauses.
find_available_versions

Retrieves a list of available versions for a package.
load_available_packages

Loads available packages from the given repository.
determine_version_to_install

Determines the version to install by comparing available versions to the required version and compare.
bundle

Bundles a package and it's dependencies into a library.
create_package

Creates a package matching the given description and dependencies.
create_package_description

A Utility function for creating rbundler scenarios.
validate_compare

Validates the compare clause.
create_mock_packages

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

Install specified version or relative version of a CRAN package.