R: Difference between revisions

From CBLFS
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(18 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|-
|-
!Download Source:
!Download Source:
| http://lib.stat.cmu.edu/R/CRAN/src/base/R-2/R-2.4.0.tar.gz
| http://lib.stat.cmu.edu/R/CRAN/src/base/R-2/R-{{R-Version}}.tar.gz
|}
|}


R is GNU S - A language and environment for statistical computing and graphics.
----


== Dependencies ==
{{Package-Introduction|R is GNU S, a language and environment for statistical computing and graphics.|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 ===
 
* [[BLAS]]
== Optional ==
* [[ATLAS]]
* [[LAPACK]]
* [[LAPACK]]
* [[Tcl]]
* [[TCL]]
* [[Tk]]
* [[Tk]]
* [[X Window System]]
* [[X Window System]]
Line 22: Line 25:
* [[libpng]]
* [[libpng]]
* [[libjpeg]]
* [[libjpeg]]
* Readline
* [[JDK]]
* Perl


== Non-Multilib ==
= Configuration Information =
{{Note|You must include CFLAGS<nowiki>=</nowiki>"-std<nowiki>=</nowiki>gnu99" or R will have problems installing add-on packages.}}


Compile the package:
{|text-align="left"
|-valign="top"
|<i>R_PDFVIEWER=<PDFVIEWER>:</i> By default the R configure script only looks for acroread, acroread4, xpdf, gv, gnome-gv, ggv, kghostview, open, and gpdf.  This covers the majority of pdf viewers, but not all; for example, evince.
|-valign="top"
|<i>--libdir=<LIBDIR>:</i> On a <b>Pure64</b> CLFS system, R will install it's libraries in <PREFIX>/lib64 as prescribed by the [http://www.pathname.com/fhs/pub/fhs-2.3.html#LIB64 FHS].  Pass --libdir=<PREFIX>/lib to put the libraries in the Pure64 CLFS location.
|-valign="top"
|<i>--enable-R-shlib:</i> Build the shared R library libR.
|-valign="top"
|<i>--enable-BLAS-shlib:</i> Build the shared ATLAS library provided by R.
|-valign="top"
|<i>--with-blas=</path/to/BLAS/library>:</i> Use the system-wide ATLAS library.
|-valign="top"
|<i>--with-lapack=</path/to/LAPACK/library:</i> Use the system-wide LAPACK library.  If using the [[ACML]] library for ATLAS and LAPACK, do not a pass a path, simply provide the option.
|}


    CFLAGS="-std=gnu99" ./configure --prefix=/opt/R --libdir=/opt/R/lib \
= Non-Multilib =
    --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


You must include CFLAGS="-std=gnu99" or R will have problems installing add-on packages.  If you have a pure 64-bit 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.
Compile the package:
 
To build the optional documentation, execute one or more of the following:


    make dvi to create DVI versions
  CFLAGS="-std=gnu99" ./configure --prefix=/usr --libdir=/usr/lib \
    make pdf to create PDF versions
  --enable-R-profiling --enable-R-shlib --enable-linux-lfs \
    make info to create info files
  --with-tcltk --with-tcl-config=/usr/lib/tclConfig.sh \
  --with-tk-config=/usr/lib/tkConfig.sh &&
  make


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}" CXX="g++ ${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 \
  --enable-R-shlib --enable-linux-lfs --with-tcltk \
    --enable-R-shlib --enable-linux-lfs --with-tcltk \
  --with-tcl-config=/usr/lib/tclConfig.sh \
    --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 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}" CXX="g++ ${BUILD64}" CFLAGS="-std=gnu99" ./configure \
  --prefix=/opt/R --libdir=/opt/R/lib64 --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


    CC="gcc ${BUILD64} CFLAGS="-std=gnu99" ./configure \
Install the package:
    --prefix=/opt/R --libdir=/opt/R/lib --enable-R-profiling \
  make install
    --enable-R-shlib --enable-linux-lfs --with-tcltk \
    --with-tcl-config=/usr/lib/tclConfig.sh \
    --with-tk-config=/usr/lib/tkConfig.sh &&
    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.
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


To build the optional documentation, execute one or more of the following:
= Contents =


    make dvi to create DVI versions
{|style="text-align: left"
    make pdf to create PDF versions
|-valign="top"
    make info to create info files
!Installed Directories:
| <PREFIX>/{bin,lib,man}
|-valign="top"
!Installed Programs:
|R
|-valign="top"
!Installed Libraries:
|libR.so
|}


Install the package:
== Short Description ==


    make install
{|style="text-align: left"
 
|-valign="top"
Install the optional documentation:
!R
 
|The R program for statistical computing and graphics.
    make install-dvi
|}
    make install-info
    make install-pdf


== Contents ==
[[Category:Science_Engineering]]

Latest revision as of 04:35, 27 June 2009

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.

Project 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.
R_PDFVIEWER=<PDFVIEWER>: By default the R configure script only looks for acroread, acroread4, xpdf, gv, gnome-gv, ggv, kghostview, open, and gpdf. This covers the majority of pdf viewers, but not all; for example, evince.
--libdir=<LIBDIR>: On a Pure64 CLFS system, R will install it's libraries in <PREFIX>/lib64 as prescribed by the FHS. Pass --libdir=<PREFIX>/lib to put the libraries in the Pure64 CLFS location.
--enable-R-shlib: Build the shared R library libR.
--enable-BLAS-shlib: Build the shared ATLAS library provided by R.
--with-blas=</path/to/BLAS/library>: Use the system-wide ATLAS library.
--with-lapack=</path/to/LAPACK/library: Use the system-wide LAPACK library. If using the ACML library for ATLAS and LAPACK, do not a pass a path, simply provide the option.

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}" CXX="g++ ${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}" CXX="g++ ${BUILD64}" CFLAGS="-std=gnu99" ./configure \
 --prefix=/opt/R --libdir=/opt/R/lib64 --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.
Retrieved from "?title=R&oldid=18514"