Install R

To install the R packages:

  1. Obtain the R rpm.
    You can get it from the official CRAN web site at http://cran.r-project.org/ or from a mirror. If the version recommended by the Project is no longer on CRAN, please contact the DVN team. Also, it is important to get the rpm that matches your architecture. Most of the tasks performed by R are CPU-intensive, and if you have 64-bit hardware, you will observe significant performance gains by using the native 64-bit version.
    Depending on your hardware, download one of the following rpms:

    • R--x.x.i386.rpm
    • R--x.x.i686.rpm
    • R--x.x.x86_64.rpm or amd64
  2. Install the rpm by typing the following command:
    rpm –ivh R-<version>-<subversion>.rpm
  3. Obtain and build all third-party modules.
    The DSB installation comes with a script that builds these modules through the R package's built-in mechanism for resolving such dependencies:

    1. Make sure your system has all the necessary build components installed. (Building R modules involves compiling binaries from sources). 
The following packages are available as RedHat rpms, however, they are not installed with RedHat's standard server configuration, so make sure you obtain and install them:

      • tk-devel
      • tcl-devel
      • xorg-x11-devel
      • libpng-devel
      • gcc-g77 (Fortran 77)
    2. To install these packages on a RedHat 4 system, use the following command:
      up2date <build components>
      To install these packages on a RedHat 5 system, use the new RedHat yum framework.
  4. Download and build the modules:
    cd /usr/local/VDC/R
    ./installR.sh

    This produces a significant amount of debugging info, which also is saved in the file /tmp/RINSTALL.<PID>.LOG. You probably will see a few warning messages about the following packages at the end of the debugging output: rgenoud, anchors, and MCMCpack. You can ignore these specific warnings. If, however, you see other warnings or errors, please report them to the DVN team.
    Note: For this release, you must install the VDCutil package manually, because it is not availble through CRAN. An addendum README file that describes this installation is included in the SourceForge downloads.

The following is the default directory in which the R packages are installed:
<R>=/usr/local/VDC/R