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:
R will take care of everything: downloading, uncompressing and installing
on the machine.
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):
Do the same for all the other packages.
- download the archive for this package, for instance the file
- launch R
- from the command line of R, execute the following instruction:
in order to know what is the current working directory
- 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
- from R, executer the following instruction:
> install.packages("conics_0.2.tar.gz", repos=NULL, type="source")
Once the installation is done, the package can be used in
R like this :
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 :
Not all packages have a vignette. In order to know which vignettes are
available, type :
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.
Desgraupes, University Paris Ouest.