Installation instructions for the R packages

Installation from CRAN

If a package is available via the CRAN mirrors, it can be downloaded and installed in one instruction form the command line of R. For instance, to install the clusterCrit package, type:
> install.packages("clusterCrit")
R will take care of everything: downloading, uncompressing and installing on the machine.

Manual installation

If you downloaded a package directly from this site, you'll have to install it from the R command line. This section explains how to do this. Let's take as an example the conics package (all the other packages use the same procedure):
  1. download the archive for this package, for instance the file conics_0.2.tar.gz
  2. launch R
  3. from the command line of R, execute the following instruction:
    > getwd()
    in order to know what is the current working directory
  4. copy the file conics_0.2.tar.gz in this directory (or alternatively let the current directory point to the directory containing the archive, using the setwd() command)
  5. from R, executer the following instruction:
    > install.packages("conics_0.2.tar.gz", repos=NULL, type="source")
Do the same for all the other packages.

Once the installation is done, the package can be used in R like this :
> library(conics)
A PDF file (known as vignette) containing explanations and examples comes with the conics package. In order to open it, executer the following instruction in R :
> vignette("conics")
Not all packages have a vignette. In order to know which vignettes are available, type :
> vignette()

Important :
note that some packages require that another package be present. For instance, the packages simplex and dantzig require the packages fraction and pivot to work properly. The required packages must be installed first.

Author: Bernard Desgraupes, University Paris Ouest.
Back to R page