Previous: Windows Up: Installation Next: Examples

Linux/Unix

You initially need to create both local R and local R library directories if they do not already exist. At the Linux/Unix command prompt in your home directory, do this by typing:

  > mkdir ~/.R ~/.R/library
Then open the `.Renviron' file that resides in your home directory, creating it if necessary, and add the line:
  R_LIBS = "~/.R/library"
using your preferred text editor. These steps only need to be performed once. After starting R, install VA by typing at the R command prompt, either:
  > install.packages("VA", repos = "http://gking.harvard.edu")
to install using Gary King's website as the repository or
  > install.packages("VA")
to install from the repository set as part of your options. You can ignore warning messages. Alternatively, you may download the Linux/Unix bundle `VA_XX.tar.gz', available from http://gking.harvard.edu/R/CRAN/src/contrib/, and place it in your home directory. Note that `XX' is the current version number. Then, at the Linux/Unix command line from your home directory, type
  > R CMD INSTALL VA_XX.tar.gz
to install the package.



Gary King 2010-09-01