Download the most recent version of R from The Comprehensive R Archive Network (CRAN). The R FAQ and the R Installation and Administration Manual contain detailed instructions for installing R on various platforms (Linux, OS X, and Windows being the main ones).
Install all Rmetrics packages
Installing Rmetrics is relatively easy. You can use the convenient R script which lists all Rmetrics packages.
The script installs all Rmetrics packages from your default CRAN repository ('repos'). This will ensure that all packages are up-to-date.
Open an R process and type the following :
source("http://www.rmetrics.org/Rmetrics.R")
install.Rmetrics()
'install.Rmetrics()' is just a wrapper function of 'install.packages()' which passes the list of all Rmetrics packages with 'pkgsRmetrics()' to the argument 'pkgs'.
The arguments of 'install.Rmetrics()' are
Arguments Definition
pkgs character vector of the short names of packages/bundles whose current versions should be downloaded from the repositories.
… further arguments to be passed to 'install.packages()'
Install Rmetrics development packages
To be able to install the Rmetrics packages from source it is important that you have the required tools to install (and compile) packages from source. Please read the R's help pages
>INSTALL
for further details.
Local install
Before you proceed you need to be familiar with the version control system Subversion (“SVN”). The svnbook and the Rmetrics page on R-forge has detailed instructions.
For Anonymous Subversion Access
This project's SVN repository can be checked out through anonymous access with the following command(s).
svn checkout svn://svn.r-forge.r-project.org/svnroot/rmetrics/pkg rmetrics_pkg
install.RmetricsDev()
When you have checked out all source code, start an R session in the folder 'rmetrics_pkg' and proceed with
source("RmetricsTools.R")
install.RmetricsDev("[Rmetrics package to be installed]")
Remark
The default R function to install a package is 'install.packages()' and it is possible to directly install package from R-Forge with
install.packages(pkg, repos="http://R-Forge.R-project.org")
*But* this process is *not* recommanded to install one of the Rmetrics development packages because you might run into compatibilty problem with other Rmetrics packages already installed on your system. Indeed, 'install.package()' will only install depended packages of 'pkg' only if they are not yet installed and will thus not update your existing packages with the latest development version.