common R commandline

R is a free soft­ware envi­ron­ment for sta­tis­ti­cal com­put­ing and graph­ics. It com­piles and runs on a wide vari­ety of UNIX plat­forms, Win­dows and MacOS.

Instal­la­tion:
1. sudo apt-get install r-base;

## try http:// if https:// URLs are not sup­port­ed

2. Change direc­to­ry: setwd(‘E:/’) or setwd(“E:/”)
caveat: use ‘/’ not ‘\’ in win­dows.
*: list items in the cur­rent direc­to­ry: dir()

3. bio­con­duc­tor:
## try http:// if https:// URLs are not sup­port­ed
source(“https://bioconductor.org/biocLite.R”)
biocLite(“limma”)

 

4. upda­tee all installed pack­ages
update.packages()

5. upgrade R
sudo add-apt-repos­i­to­ry ppa:marutter/rrutter
sudo apt-get update
sudo apt-get upgrade

 

Leave a Reply

Your email address will not be published. Required fields are marked *