From 64d4aaefd799bbac7bea011dc0e5562fddef0292 Mon Sep 17 00:00:00 2001 From: mattinbits Date: Mon, 12 Nov 2018 15:53:44 +0100 Subject: [PATCH 1/2] Remove hardcoded cran --- R/needs.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/needs.R b/R/needs.R index be28c66..0fdd85f 100644 --- a/R/needs.R +++ b/R/needs.R @@ -49,7 +49,7 @@ needs <- function(..., .printConflicts = F) { missing <- pkgs[!loaded] cat("installing packages:\n") cat(missing, sep = "\n") - utils::install.packages(missing, repos = "http://cran.rstudio.com/", + utils::install.packages(missing, quiet = T) } # attach packages From 7c4254305c3f2a2a2bfb9e580e3279ca9332373b Mon Sep 17 00:00:00 2001 From: mattinbits Date: Mon, 12 Nov 2018 15:54:31 +0100 Subject: [PATCH 2/2] Update needs.R --- needs.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/needs.R b/needs.R index b749581..279a420 100644 --- a/needs.R +++ b/needs.R @@ -12,7 +12,7 @@ tryCatch(needs(), error = function(e) { missing <- pkgs[!loaded] cat("installing packages:n") cat(missing, sep = "n") - utils::install.packages(missing, repos = "http://cran.rstudio.com/", + utils::install.packages(missing, quiet = T) } suppressWarnings(suppressMessages(sapply(pkgs, library,