Difference between revisions of "R"

From HCL
Jump to: navigation, search
(New page: http://cran.r-project.org/)
 
Line 1: Line 1:
 
http://cran.r-project.org/
 
http://cran.r-project.org/
 +
 +
Installation from sources:
 +
 +
1. R sould be configured as a shared library
 +
<source lang="bash">
 +
$ ./configure --prefix=DIR --enable-R-shlib=yes
 +
$ make install
 +
</source>
 +
2. Set up environment
 +
<source lang="bash">
 +
$ export R_HOME=DIR/lib/R
 +
</source>
 +
3. Install required packages
 +
<source lang="bash">
 +
$ DIR/bin/R
 +
> install.packages(c(”sandwich”, ”strucchange”, ”zoo”))
 +
</source>
 +
4. If R is intalled in a non-default directory
 +
<source lang="bash">
 +
$ export LD_LIBRARY_PATH=$R_HOME/lib:$LD_LIBRARY_PATH
 +
</source>

Revision as of 13:06, 29 January 2010

http://cran.r-project.org/

Installation from sources:

1. R sould be configured as a shared library

$ ./configure --prefix=DIR --enable-R-shlib=yes
$ make install

2. Set up environment

$ export R_HOME=DIR/lib/R

3. Install required packages

$ DIR/bin/R
> install.packages(c(”sandwich”, ”strucchange”, ”zoo”))

4. If R is intalled in a non-default directory

$ export LD_LIBRARY_PATH=$R_HOME/lib:$LD_LIBRARY_PATH