diff --git a/README.md b/README.md index aaaaa87..b11d449 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # rstudio-rprofile -Rprofile.site that's going to be used in our rstudio instances. \ No newline at end of file +Rprofile.site that's going to be used in our rstudio instances. diff --git a/Rprofile.site b/Rprofile.site new file mode 100644 index 0000000..351797f --- /dev/null +++ b/Rprofile.site @@ -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")));