Stat 505 R setup
Log into newton to run R. Rstudio shows up in the Applications -- Development menu.
You should also install R on your own computer.
- Go to the cran website.
Pick your operating system: Linux, Mac or Windows and follow the
directions to install.
- The Windows version of R has a simple editor built in.
Keyboard shortcuts
- Switch applications: alt + tab
- Start of line: ctrl + a
- End of line: ctrl + e
- Copy: ctrl + c
- Paste: ctrl + v
- Undo: ctrl + z
- Copy and paste to current line: ctrl + x
- Run highlighted line: F5
- I use emacs and (ess) for editing and running R. Getting
started, I recommend Rstudio. It provides
a window for a code file (save it), others for plots, help, files,
...
- As you get more proficient, I'll want you to try
Sweave, a
process for combining R code, output, and plots into a nice report
using LaTeX.
Significance stars in R output are outlawed! Use this option:
options(show.signif.stars =FALSE)
or store it in a .First file which R runs when started in this directory
.First <- function(){
options(show.signif.stars =FALSE)
}
save.image()
Or put the options into a text file called .Rprofile in the startup
directory.
Use getwd() to see where that is.