Contents
 
Introduction
To R

Loading Extra Packages

R can be extended (easily) via packages. There are about eight packages supplied with the R distribution and many more are available through the CRAN family of Internet sites covering a very wide range of modern statistics.

If you are using any computer in the Dept you almost certainly need not download nor install any package as most of them are already available in the system. However, you will need to call the required package from your R session: require(). For example:

> require(geoR)
Loading required package: geoR
[1] TRUE
The command library() also works for loading packages in R. However, the former is preferred since it only loads a package if this has not been called previously. This avoids allocating space for replicates of existing functions. 
Contents