Learn R from stratch on Ubuntu 12.04 - lifuzu/cafe GitHub Wiki
- Install the latest R base;
sudo add-apt-repository "deb http://cran.stat.ucla.edu/bin/linux/ubuntu precise/"
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -
sudo apt-get update
sudo apt-get install r-base
- Install R IDE; go to http://www.rstudio.com/ide/download/, download the latest version, then install it;
sudo gdebi <name of downloaded rstudio file ending in .deb>
- Install package (for example: shiny, codetools)
install.packages('shiny')
install.packages('codetools')
-
Create some demo R source code in R Studio You can get the sample code here: https://gist.github.com/lifuzu/6830418
-
Run the R code locally, with the command in Console Windows of R Studio (Remember to check 'shiny' package)
runApp(".")
#Next step: http://rstudio.github.io/shiny/tutorial
#Glossary:
R Language - R is a language and environment for statistical computing and graphics.
Shiny - Shiny makes it super simple for R users like you to turn analyses into interactive web applications that anyone can use.
Sweave - Sweave is a tool that allows to embed the R code for complete data analyses in latex documents.
#References: