Change the default mirror.

This commit is contained in:
Andrea Dell'Amico 2023-03-20 14:25:39 +01:00
parent b586e731d3
commit 37574e1918
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 3 additions and 4 deletions

View File

@ -32,10 +32,9 @@ print(paste("with the R version they are build against."))
print(paste("***********************************************"))
########### Default mirror site #############################
local({r <- getOption("repos")
r["CRAN"] <- "https://cran.mirror.garr.it/mirrors/CRAN/"
options(repos=r)
})
options(repos = c(CRAN = 'https://packagemanager.rstudio.com/cran/__linux__/focal/latest'), download.file.method = 'libcurl')
# https://docs.rstudio.com/rspm/admin/serving-binaries/#binaries-r-configuration-linux
options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version["platform"], R.version["arch"], R.version["os"])))
Sys.setlocale(category = "LC_ALL", locale = "en_US.UTF-8")