R includes a large number of additional packages
that may be installed separately from the main R installation. An alphabetical
list of R packages and their descriptions may be found at the following
URL:
To list the available R packages, use the available.packages()
function from an R console window. You will need to select a mirror site
from which to retrieve the package details. The following command lists
details for the first five available packages on the selected mirror site:
>
p <- available.packages()
>
p[1:5,]
Package
Version Priority
Depends Imports
LinkingTo Suggests Enhances
License
A3 "A3"
"0.9.2"
NA "R
(>= 2.15.0), xtable, pbapply" NA NA
"randomForest,
e1071" NA "GPL
(>= 2)"
ABCExtremes
"ABCExtremes" "1.0" NA
"SpatialExtremes,
combinat" NA NA
NA NA
"GPL-2"
ABCoptim
"ABCoptim" "0.13.11"
NA NA NA
NA NA
NA
"GPL (>=
3)"
To list the R packages that are currently installed,
use the installed.packages() function from an R console window as follows.
The following example lists details for the first five installed packages:
>
i <- installed.packages()
>
i[1:5,]
Package
LibPath Version
Priority Depends
Imports
LinkingTo
Suggests Enhances
base
"base" "C:/Program
Files/R/R-3.1.2/library" "3.1.2" "base"
NA NA
NA
NA NA
boot
"boot" "C:/Program
Files/R/R-3.1.2/library" "1.3-13" "recommended"
"R (>= 3.0.0), graphics, stats" NA NA
"MASS,
survival" NA
class
"class" "C:/Program
Files/R/R-3.1.2/library" "7.3-11" "recommended"
"R (>= 3.0.0), stats, utils" "MASS"
NA
NA NA
cluster
"cluster" "C:/Program
Files/R/R-3.1.2/library" "1.15.3" "recommended"
"R (>= 2.12.0), stats, utils" "graphics,
grDevices" NA "MASS"
NA
codetools
"codetools" "C:/Program Files/R/R-3.1.2/library" "0.2-9"
"recommended" "R (>= 2.1)"
NA
NA
NA NA
License
License_is_FOSS
License_restricts_use OS_type MD5sum NeedsCompilation Built
base
"Part of R 3.1.2"
NA NA
NA
NA NA
"3.1.2"
boot
"Unlimited" NA
NA
NA
NA "no"
"3.1.2"
class
"GPL-2 | GPL-3" NA
NA
NA
NA "yes"
"3.1.2"
cluster
"GPL (>= 2)" NA
NA
NA
NA "yes"
"3.1.2"
codetools
"GPL" NA
NA
NA
NA "no"
"3.1.2"
Installing a Package
To install a package, use the install.packages()
function from an R console window as follows: