New Rprofile.site.

This commit is contained in:
Andrea Dell'Amico 2021-11-30 13:15:46 +01:00
parent 6b644dace6
commit 9579840410
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 35 additions and 1 deletions

View File

@ -1,3 +1,3 @@
# rstudio-rprofile
Rprofile.site that's going to be used in our rstudio instances.
Rprofile.site that's going to be used in our rstudio instances.

34
Rprofile.site Normal file
View File

@ -0,0 +1,34 @@
########### Default mirror site #############################
local({r <- getOption("repos")
r["CRAN"] <- "https://cran.mirror.garr.it/mirrors/CRAN/"
options(repos=r)
})
Sys.setlocale(category = "LC_ALL", locale = "en_US.UTF-8")
print(paste("************ Welcome",getCurrentUserName(),"************"))
print(paste("Please read the following instructions to maximise the exploitation of the RStudio environment."))
print(paste("*****************Software upgrades and cloud facilities*******************"))
print(paste("if you need support or you need to install additional R packages requiring special privileges"))
print(paste("please contact your VRE manager."))
print(paste("R packages not requiring special privileges may also be installed directly by using the R console."))
print(paste("However these packages will be local to the user workspace and they cannot require root access."))
print(paste("Moreover, the packages may not be present across different sessions since they are local to one"))
print(paste("RStudio server while each session may be allocated to a different RStudio server."))
print(paste("This option is therefore discouraged and it should be used only for testing purposes."))
print(paste("***********************************************"))
print(paste("*****************USAGE NOTES*******************"))
print(paste("*****************D4Science Workspace****************"))
print(paste("You can access, read and write any folder of your workspace"))
print(paste("by loading the package 'd4storagehub4R'"))
print(paste("developed by E. Blondel, with source code available at https://github.com/eblondel/d4storagehub4R"))
print(paste("or by saving your files to your local workspace folder"))
print(paste("It is recommended to save any worth maintaining file into the workspace to persist it."))
print(paste("The persistence of files stored elsewhere is not guaranteed."))
print(paste("***********************************************"))
print(paste("Using Locale Encoding:",Sys.setlocale("LC_CTYPE","en_US.UTF-8")));