diff --git a/DESCRIPTION b/DESCRIPTION index 168d998..2d72ea3 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: Rpacman Type: Package Title: Very simple package manager for R -Version: 1.0.5 +Version: 1.0.6 Date: 2022-05-31 Authors@R: person("Craig", "Williams", email = "craig@avsdev.uk", role = c("aut", "cre")) URL: https://avsdev.uk/R/Rpacman diff --git a/R/activate.R b/R/activate.R index db5ca68..16be6f4 100644 --- a/R/activate.R +++ b/R/activate.R @@ -7,6 +7,7 @@ #' #' @export activate <- function(totalIsolation = FALSE) { + check_pacman_dir() if (totalIsolation) { environment(.libPaths)$.lib.loc <- c(file.path(getwd(), ".pacman/library"), .Library) } else { diff --git a/R/isolate.R b/R/isolate.R index 1e6804a..028ce7a 100644 --- a/R/isolate.R +++ b/R/isolate.R @@ -3,5 +3,6 @@ #' #' @export isolate <- function() { + check_pacman_dir() environment(.libPaths)$.lib.loc <- c(file.path(getwd(), ".pacman/library"), .Library) } \ No newline at end of file