Difference between revisions of "R"

From CBLFS
Jump to navigationJump to search
m (Versioning.)
(Formatted for template compatibility.)
Line 5: Line 5:
 
|}
 
|}
  
== Introduction to R ==
+
= Introduction to R =
  
 
R is GNU S, a language and environment for statistical computing and graphics.
 
R is GNU S, a language and environment for statistical computing and graphics.
  
== Dependencies ==
+
<b>Homepage:</b> http://www.r-project.org/
  
=== Required ===
+
= Dependencies =
 +
 
 +
== Required ==
 
* [[GMP]]
 
* [[GMP]]
 
* [[MPFR]]
 
* [[MPFR]]
* [[GCC]] compiled to include F77 (<4.X.X) or gfortran (>=4.X.X).  f2c won't work on a 64-bit arch.
+
* [[GCC]] compiled to include F77 (<4.X.X) or gfortran (>=4.X.X).  f2c won't work on a 64-bit architecture.
=== Optional ===
+
 
 +
== Optional ==
 
* [[BLAS]]
 
* [[BLAS]]
 
* [[LAPACK]]
 
* [[LAPACK]]
Line 27: Line 30:
 
* Perl
 
* Perl
  
== Non-Multilib ==
+
= Configuration Information =
 +
 
 +
<b>NOTE:</b> You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages.
 +
<b>NOTE:</b> If you have a <b>Pure64</b> system, R will install it's libraries in /opt/R/lib64 by default.
 +
 
 +
{|text-align="left"
 +
|-valign="top"
 +
|<i>--libdir=:</i> On a <b>Pure64</b> system, R will install it's libraries in <PREFIX>/lib64 by default.  Pass --libdir=<PREFIX>/lib to put the libraries in a standard location.
 +
|-valign="top"
 +
|<i>--enable-R-shlib:</i> Build the shared R library libR.
 +
|-valign="top"
 +
|<i>--enable-BLAS-shlib:</i> Build the shared BLAS library provided by R.
 +
|-valign="top"
 +
|<i>--with-blas:</i> Use the system-wide BLAS library.
 +
|-valign="top"
 +
|<i>--with-lapack:</i> Use the system-wide LAPACK library.
 +
|}
 +
 
 +
= Non-Multilib =
  
 
Compile the package:
 
Compile the package:
  
   CFLAGS="-std=gnu99" ./configure --prefix=/opt/R --libdir=/opt/R/lib \
+
   CFLAGS="-std=gnu99" ./configure --prefix=/usr --libdir=/usr/lib \
 
   --enable-R-profiling --enable-R-shlib --enable-linux-lfs \
 
   --enable-R-profiling --enable-R-shlib --enable-linux-lfs \
 
   --with-tcltk --with-tcl-config=/usr/lib/tclConfig.sh \
 
   --with-tcltk --with-tcl-config=/usr/lib/tclConfig.sh \
 
   --with-tk-config=/usr/lib/tkConfig.sh &&
 
   --with-tk-config=/usr/lib/tkConfig.sh &&
 
   make
 
   make
 
You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages.  If you have a '''Pure 64''' system, R will install it's libraries in /opt/R/lib64 by default.  If you are using a system-wide [[BLAS]] and/or [[LAPACK]] library, add --with-blas and/or --with-lapack to the configure options.
 
  
 
Install the package:
 
Install the package:
 +
  make install
  
   make install
+
Build and install the info pages for R:
 +
  make install-info
 +
Build and install the DVI documentation for R:
 +
   make install-dvi
 +
Build and install the PDF documentation for R:
 +
  make install-pdf
 +
Copy the R icons to /usr/share/pixmaps:
 +
  cp -v doc/html/logo* /usr/share/pixmaps
  
== Multilib ==
+
= Multilib =
  
=== 32Bit ===
+
== 32Bit ==
  
 
Compile the package:
 
Compile the package:
 
 
   CC="gcc ${BUILD32} CFLAGS="-std=gnu99" ./configure \
 
   CC="gcc ${BUILD32} CFLAGS="-std=gnu99" ./configure \
 
   --prefix=/opt/R --libdir=/opt/R/lib --enable-R-profiling \
 
   --prefix=/opt/R --libdir=/opt/R/lib --enable-R-profiling \
Line 55: Line 81:
 
   --with-tk-config=/usr/lib/tkConfig.sh &&
 
   --with-tk-config=/usr/lib/tkConfig.sh &&
 
   make
 
   make
 
You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages.  If you are using a system-wide [[BLAS]] and/or [[LAPACK]] library, add --with-blas and/or --with-lapack to the configure options.
 
  
 
Install the package:
 
Install the package:
 
 
   make install
 
   make install
  
=== 64Bit ===
+
== 64Bit ==
  
 
Compile the package:
 
Compile the package:
 
 
   CC="gcc ${BUILD64} CFLAGS="-std=gnu99" ./configure \
 
   CC="gcc ${BUILD64} CFLAGS="-std=gnu99" ./configure \
 
   --prefix=/opt/R --libdir=/opt/R/lib --enable-R-profiling \
 
   --prefix=/opt/R --libdir=/opt/R/lib --enable-R-profiling \
Line 72: Line 94:
 
   --with-tk-config=/usr/lib64/tkConfig.sh &&
 
   --with-tk-config=/usr/lib64/tkConfig.sh &&
 
   make
 
   make
 
You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages.  If you are using a system-wide [[BLAS]] and/or [[LAPACK]] library, add --with-blas and/or --with-lapack to the configure options.
 
  
 
Install the package:
 
Install the package:
 
 
   make install
 
   make install
 
== Documentation ==
 
  
 
Build and install the info pages for R:
 
Build and install the info pages for R:
 
 
   make install-info
 
   make install-info
 
 
Build and install the DVI documentation for R:
 
Build and install the DVI documentation for R:
 
 
   make install-dvi
 
   make install-dvi
 
 
Build and install the PDF documentation for R:
 
Build and install the PDF documentation for R:
 
 
   make install-pdf
 
   make install-pdf
 +
Copy the R icons to /usr/share/pixmaps:
 +
  cp -v doc/html/logo* /usr/share/pixmaps
  
Copy the R icons to /usr/share/pixmaps:
+
= Contents =
  
  cp -v doc/html/logo* /usr/share/pixmaps
+
{|style="text-align: left"
 +
|-valign="top"
 +
!Installed Directories:
 +
| <PREFIX>/{bin,lib,man}
 +
|-valign="top"
 +
!Installed Programs:
 +
|R
 +
|-valign="top"
 +
!Installed Libraries:
 +
|libR.so
 +
|}
  
== Contents ==
+
== Short Description ==
  
* Installed Programs: R
+
{|style="text-align: left"
* Installed Libraries: libR.so
+
|-valign="top"
* Installed Directories: <PREFIX>/{bin,lib,man}
+
!R
 +
|The R program for statistical computing and graphics.
 +
|}

Revision as of 11:17, 22 December 2006

Download Source: http://lib.stat.cmu.edu/R/CRAN/src/base/R-2/R-2.9.1.tar.gz

Introduction to R

R is GNU S, a language and environment for statistical computing and graphics.

Homepage: http://www.r-project.org/

Dependencies

Required

  • GMP
  • MPFR
  • GCC compiled to include F77 (<4.X.X) or gfortran (>=4.X.X). f2c won't work on a 64-bit architecture.

Optional

Configuration Information

NOTE: You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages. NOTE: If you have a Pure64 system, R will install it's libraries in /opt/R/lib64 by default.

--libdir=: On a Pure64 system, R will install it's libraries in <PREFIX>/lib64 by default. Pass --libdir=<PREFIX>/lib to put the libraries in a standard location.
--enable-R-shlib: Build the shared R library libR.
--enable-BLAS-shlib: Build the shared BLAS library provided by R.
--with-blas: Use the system-wide BLAS library.
--with-lapack: Use the system-wide LAPACK library.

Non-Multilib

Compile the package:

 CFLAGS="-std=gnu99" ./configure --prefix=/usr --libdir=/usr/lib \
 --enable-R-profiling --enable-R-shlib --enable-linux-lfs \
 --with-tcltk --with-tcl-config=/usr/lib/tclConfig.sh \
 --with-tk-config=/usr/lib/tkConfig.sh &&
 make

Install the package:

 make install

Build and install the info pages for R:

 make install-info

Build and install the DVI documentation for R:

 make install-dvi

Build and install the PDF documentation for R:

 make install-pdf

Copy the R icons to /usr/share/pixmaps:

 cp -v doc/html/logo* /usr/share/pixmaps

Multilib

32Bit

Compile the package:

 CC="gcc ${BUILD32} CFLAGS="-std=gnu99" ./configure \
 --prefix=/opt/R --libdir=/opt/R/lib --enable-R-profiling \
 --enable-R-shlib --enable-linux-lfs --with-tcltk \
 --with-tcl-config=/usr/lib/tclConfig.sh \
 --with-tk-config=/usr/lib/tkConfig.sh &&
 make

Install the package:

 make install

64Bit

Compile the package:

 CC="gcc ${BUILD64} CFLAGS="-std=gnu99" ./configure \
 --prefix=/opt/R --libdir=/opt/R/lib --enable-R-profiling \
 --enable-R-shlib --enable-linux-lfs --with-tcltk \
 --with-tcl-config=/usr/lib64/tclConfig.sh \
 --with-tk-config=/usr/lib64/tkConfig.sh &&
 make

Install the package:

 make install

Build and install the info pages for R:

 make install-info

Build and install the DVI documentation for R:

 make install-dvi

Build and install the PDF documentation for R:

 make install-pdf

Copy the R icons to /usr/share/pixmaps:

 cp -v doc/html/logo* /usr/share/pixmaps

Contents

Installed Directories: <PREFIX>/{bin,lib,man}
Installed Programs: R
Installed Libraries: libR.so

Short Description

R The R program for statistical computing and graphics.