Professional Documents
Culture Documents
Go to www.r-project.org
Scroll down the CRAN MIRROR SITES to a U.S. site (such as USA(NC))
Under Download and Install R, select your operating system (Linux, MacOS-
X,Windows)
Click on the link for the current version (currently it is R-2.15.1). The current link for
Windows is: R-2.15.1-win32.exe
After installation, open the R workspace environment and download the DAAG and lme4
packages:
You may run programs in interactive mode in RGui environment, but I will not support
this approach for this course, I will give all programs and suggest you run the programs
in batch mode.
Step 1: Create a batch file in the directory you will be running R from
In any text editor, create a one line program R.bat with the text (those are 2 “-“ signs before vanilla):
C:\Progra~1\R\R-2.15.1\bin\Rterm --vanilla
Begin program with the line (this will send any graphics output to a pdf file):
pdf(“progtest.pdf”)
dev.off()
chdir staXXXX
R <progtest.r> progtest.out
Any text output will be written to the file progtest.out which can be input to WORD, notepad, etc.
Running programs in the R Workspace
Select the Program you want to run, it will appear in a R Editor Window