|
GPCC Home
SSH Information
Login Service
Statistics and
Computation Service
Account Status
|
Statistics Packages: R
The current version of R is 2.4.1. Version 2.1.1 is still installed, and can be
launched by typing 'R-2.1.1'.
Local Documentation
We keep local copies of the documentation that was in effect when we
built R in an attempt to make sure that the version we have and the
available documentation agree.
Documentation for R version 2.4.1:
- An Introduction to R (approx. 100 pages,
650kB), based on the former "Notes on R", gives an
introduction to the language and how to use R for doing
statistical analysis and graphics.
- A draft of the R language definition
(approx. 60 pages, 412kB) which documents the language per
se. That is, the objects that it works on, and the details
of the expression evaluation process, which are useful to know
when programming R functions.
- Writing R Extensions (approx. 118 pages,
704kB) covers how to create your own packages,
write R help files, and the foreign language (C, C++, Fortran,
...) interfaces.
- R Data Import/Export (approx. 30 pages,
270kB) describes the import and export facilities available
either in R itself or via packages which are available from
CRAN.
- R Installation and Administration
(approx. 54 pages, 384kB)
- The R Reference Index (approx. 1500
pages, 7.4MB) contains all help files of the R base packages in
printable form.
Documentation for R version 2.1.1:
Additional Modules
R provides a basic level of functionality. Much of its utility is
provided by add-on modules. For previous versions of R, we installed
most user-requested modules system-wide. Due to problems with module
versions, dependencies, and conflicts between modules, we've stopped
doing this as of version 2.4.1, with the exception of the recommended
R modules that are bundled with binary versions of R. We are now asking
users to install additional modules in their home directories. Please
see our instructions below on installing R modules. If you have problems
installing a module, please contact us at scs-admins@umich.edu.
The only modules we've installed system-wide are the list of modules
recommended by R:
| boot 1.2-27 | (18 Apr, 2007) |
| class 7.2-33 | (18 Apr, 2007) |
| cluster 1.11.5 | (18 Apr, 2007) |
| foreign 0.8-18 | (18 Apr, 2007) |
| Kernsmooth 2.22-19 | (18 Apr, 2007) |
| lattice 0.14-16 | (18 Apr, 2007) |
| MASS 7.2-33 | (18 Apr, 2007) |
| mgcv 1.3-23 | (18 Apr, 2007) |
| nlme 3.1-80 | (18 Apr, 2007) |
| nnet 7.2-33 | (18 Apr, 2007) |
| rpart 3.1-35 | (18 Apr, 2007) |
| spatial 7.2-33 | (18 Apr, 2007) |
| survival 2.31 | (18 Apr, 2007) |
Installing Modules
- Choose a name for the directory that will contain your R packages.
Traditionally, this would be myRlibs, which is the name we'll use
for the remainder of this example. We'll use the package named
Amelia.
- Start R. At the R command prompt, type:
install.packages("pkgname", lib="libdir", dependencies = TRUE)
replacing pkgname with the name of the package you're trying to
install, and libdir with the name of the directory you're using to
house your R packages. So, to install the Amelia package in myRlibs,
you'd type:
install.packages("Amelia", lib="myRlibs", dependencies = TRUE)
You will be prompted to choose a mirror from which to download the package.
There is a fast mirror site in Michigan; its number is probably in the high
60s or low 70s. Find it on the list and enter its number, or choose a
different mirror.
This will install the Amelia package and any packages it depends on
in a folder called myRlibs in your home directory.
- When you want to load the package, type:
library("pkgname", lib="libdir")
or, in our example:
library("Amelia", lib="myRlibs")
|