Adapt the jupyter Rprofile to jammy

This commit is contained in:
Andrea Dell'Amico 2023-04-11 16:01:18 +02:00
parent fb53e9fee9
commit bfdcc7ed55
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 3 additions and 3 deletions

View File

@ -32,14 +32,13 @@ print(paste("If you need some packages permanently installed in Rstudio,"))
print(paste("please contact your VRE manager.")) print(paste("please contact your VRE manager."))
print(paste("R packages may also be installed directly by using the R console.")) print(paste("R packages may also be installed directly by using the R console."))
print(paste("Those packages can be made permanent installing them into your home directory.")) print(paste("Those packages can be made permanent installing them into your home directory."))
print(paste("You have to install the packages in the following way:"))
print(paste("install.packages('pkg_name', lib='~/R/x86_64-pc-linux-gnu-library/4.1')"))
print(paste("Please keep in mind that those packages are only compatible")) print(paste("Please keep in mind that those packages are only compatible"))
print(paste("with the R version they are build against.")) print(paste("with the R version they are build against."))
print(paste(""))
print(paste("***********************************************")) print(paste("***********************************************"))
########### Default mirror site ############################# ########### Default mirror site #############################
options(repos = c(CRAN = 'https://packagemanager.rstudio.com/cran/__linux__/focal/latest'), download.file.method = 'libcurl') options(repos = c(CRAN = 'https://packagemanager.rstudio.com/cran/__linux__/jammy/latest'), download.file.method = 'libcurl')
# https://docs.rstudio.com/rspm/admin/serving-binaries/#binaries-r-configuration-linux # 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"]))) 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") Sys.setlocale(category = "LC_ALL", locale = "en_US.UTF-8")
@ -52,3 +51,4 @@ print(paste(""))
# return(storagehub) # return(storagehub)
# } # }
print(paste("Using Locale Encoding:",Sys.setlocale("LC_CTYPE","en_US.UTF-8"))); print(paste("Using Locale Encoding:",Sys.setlocale("LC_CTYPE","en_US.UTF-8")));
print(paste(""))