Learn R Programming

⚠️There's a newer version (0.3.7) of this package.Take me there.

rbundler (version 0.3.4)

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

10

Version

0.3.4

License

GPL-3

Maintainer

Yoni Ben-Meshulam

Last Published

September 13th, 2013

Functions in rbundler (0.3.4)

determine_version_to_install

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

Creates a package matching the given description and dependencies.
update_renviron_file

Updates a .Renviron file in the given path.
mock_dependency

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

Retrieves a list of available versions for a package.
construct_r_libs_user

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

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

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

Updates the current environment.
bundle

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

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

A Utility function for creating rbundler scenarios.
install_version

Install specified version or relative version of a CRAN package.
compare_versions

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

A package dependency management utility.
validate_compare

Validates the compare clause.
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.
load_available_packages

Loads available packages from the given repository.