From 78eb66cf0217b0bfe1a9e7259d4a7dc4ccfd8a02 Mon Sep 17 00:00:00 2001 From: test2 Date: Wed, 11 Mar 2020 23:39:04 +0200 Subject: [PATCH] pie 1 --- README.md | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c786f0..3fef2fd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,48 @@ -# examples-r +# The R Project for Statistical Computing + +R is an open source programming language. It has become one of the powerful choices for statistical analysis. R helps you to get big picture of your data by calculating statistical parameters like mean, standard deviation, correlation etc. + +[wikipedia.org/wiki/R_](https://en.wikipedia.org/wiki/R_(programming_language)) + + +## LabInstance gcc + + +![alt text](images/swarmlab-network.png "") + + +## Quickstart + +This is a quickstart guide of howto use this *LabInstance* + +- Working Directory + +> /root + +- Default user + +> root + + +Here is a simple code to reinstall all the necessary R packages to keep you up and running. The script will check whether the required packages have been installed, if not, it will install them accordingly. +--- +#create a function to check for installed packages and install them if they are not installed +install <- function(packages){ + new.packages <- packages[!(packages %in% installed.packages()[, "Package"])] + if (length(new.packages)) + install.packages(new.packages, dependencies = TRUE) + sapply(packages, require, character.only = TRUE) +} + +required.packages <- c("package1", "package2" ) +install(required.packages) +--- + + +--- +**MORE INFO** + +See swarmlab and examples directory +--- +