Learn R from stratch on Ubuntu 12.04 - lifuzu/cafe GitHub Wiki

  1. 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
  
  1. 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>
  
  1. Install package (for example: shiny, codetools)

  install.packages('shiny')
  install.packages('codetools')
  
  1. Create some demo R source code in R Studio You can get the sample code here: https://gist.github.com/lifuzu/6830418

  2. 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:

  1. http://cran.rstudio.com/bin/linux/ubuntu/README.html
  2. http://www.rstudio.com/
  3. http://www.r-project.org/ (R Language)
  4. http://www.rstudio.com/shiny/ (Shiny)
  5. http://www.stat.uni-muenchen.de/~leisch/Sweave/ (Sweave)
  6. http://www.cookbook-r.com
  7. http://cran.r-project.org/doc/contrib/Short-refcard.pdf
⚠️ **GitHub.com Fallback** ⚠️