lib.set_libPaths: Set '.libPaths()' to the provided version specific package...

View source: R/helper_functions.R

lib.set_libPathsR Documentation

Set .libPaths() to the provided version specific package locations.

Description

Adds .Library and the paths of the specific versions of the provided packages that are specified (and likely loaded before) to the .libPaths. Note that this function will erase any current .libPaths() configuration silently.

Usage

lib.set_libPaths(packNameVersion, lib_location, additional_lib_paths = c())

Arguments

packNameVersion

A named character vector with package names and their version indication (e.g. c(dplyr = '>= 0.05', ggplot = '')). Or the special string 'all', which will add the paths of all directories of the latest versions of every package in the R_MV_library. The path that is appended to the .libPaths() is constructed based on the name and version provided.

lib_location

The multiversion library location path (no default configured here!).

additional_lib_paths

Any additional .libPaths() that needs to be set. Namely used for the temporary installation directory.

Value

The old .libPaths() content is returned invisibly.


multiversion documentation built on March 22, 2022, 1:07 a.m.