Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
doku:r-project [2013/06/25 06:27] – external edit 127.0.0.1doku:r-project [2016/10/14 06:15] (current) markus
Line 1: Line 1:
-==== Compilation of R ====+==== Installation of R packages in the user home ====
  
-=== Version 3.0.1 on VSC-1 ===+Users can have their own R packages installedThe following steps have to be done:
  
-<code> +  - Create a .Renviron file, using 'vi' e.g.:<code> 
-umask 0022 +vi ${HOME}/.Renviron  
-export LD_LIBRARY_PATH= +</code>The content of this file points to the directory of your personal libraries, e.g.:<code> 
-source /opt/intel/composerxe/bin/compilervars.sh intel64+R_LIBS=${HOME}/R/lib 
 +</code> 
 +  - create the directory, which was specified in .Renviron: <code> 
 +mkdir -p ${HOME}/R/lib </code> 
 +  - start R and install packages: <code> 
 +install.packages('sp'
 +</code>
  
-export CC=icc 
-export CXX=icpc 
-export FC=ifort 
-export F77=ifort 
- 
-export FFLAGS="-O3" 
-export CFLAGS="-O3" 
-export CXXFLAGS="-O3" 
-export FCFLAGS="-O3" 
- 
-MKL_LIB_PATH=/opt/intel/composerxe/mkl/lib/intel64 
- 
- 
-export SHLIB_LDFLAGS="-lpthread" 
-export MAIN_LDFLAGS="-lpthread" 
-MKL=" -L${MKL_LIB_PATH}                         \ 
-      -Wl,--start-group                         \ 
-         ${MKL_LIB_PATH}/libmkl_gf_lp64.a       \ 
-         ${MKL_LIB_PATH}/libmkl_gnu_thread.a    \ 
-         ${MKL_LIB_PATH}/libmkl_core.a          \ 
-      -Wl,--end-group                           \ 
-      -lgomp -lpthread" 
-export LDFLAGS="$MKL" 
-./configure --with-blas="$MKL" --with-lapack --prefix=/opt/sw/R-3.0.1 
- 
-make 
- 
-make install 
-LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/sw/R-3.0.1/lib64/R/lib 
- 
-</code> 
  • doku/r-project.1372141624.txt.gz
  • Last modified: 2016/10/14 06:10
  • (external edit)