Change the default mirror.
This commit is contained in:
parent
b586e731d3
commit
37574e1918
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue