R Tools

Getting help:
Finding things:
  • list.files(".")               list files in the current directory (all kinds of other options)
  • ls("package:knitr")       list the objects that are in the knitr package
  • data()                                 list the built-in datasets in R


Useful system management commands:
  • setwd()                  set the current working directory to the specified path 
  • getwd()                  return the path of the current directory
  • install.packages('knitr', dependencies=TRUE)   installs the package 'knitr' from CRAN.  You would then use the library command to load into the current workspace.
RStudio commands:
  • CTRL-r                       run the currently selected text in R-studio use 

R document layout:
http://onepager.togaware.com/KnitR.pdf

Installing Tex:
http://miktex.org/2.9/setup