diff --git a/jupyter-Rprofile.site b/jupyter-Rprofile.site index 69597e1..fb46a4f 100644 --- a/jupyter-Rprofile.site +++ b/jupyter-Rprofile.site @@ -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")