16 lines
504 B
R
16 lines
504 B
R
|
|
#' Adds the pacman library path to the .libPaths variable, either as an extra
|
|
#' library or as the only library
|
|
#'
|
|
#' @param totalIsolation boolean Only refer to the pacman library, do not use
|
|
#' any user library paths
|
|
#'
|
|
#' @export
|
|
activate <- function(totalIsolation = FALSE) {
|
|
check_pacman_dir()
|
|
if (totalIsolation) {
|
|
environment(.libPaths)$.lib.loc <- c(file.path(getwd(), ".pacman/library"), .Library)
|
|
} else {
|
|
.libPaths(c(file.path(getwd(), ".pacman/library"), .libPaths()))
|
|
}
|
|
} |