lib.location: The R_MV_library location.

View source: R/helper_functions.R

lib.locationR Documentation

The R_MV_library location.

Description

This function will look for the environment variable R_MV_LIBRARY_LOCATION indicating the R_MV_library location. Alternatively you can provide a path for this session only, using lib.location(yourPath). This will set the environment variable for this session. (You might want to consider to add this to your .Rprofile file, see ?Startup)

Usage

lib.location(set_session_path)

Arguments

set_session_path

(optional) If no environment variable has been set to indicate the library location, You can call this function and let it set the environment variable for this session only.

Value

When a path is provided, this will be stored as the multiversion library location to use during this session (via the environment variable "R_MV_LIBRARY_LOCATION"). In all cases, it will return the location of the multiversion library. When it cannot be found, it will return an error indicating what to do.


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