BwUniCluster2.0/Software/R/Rjags

From bwHPC Wiki
< BwUniCluster2.0‎ | Software‎ | R
Revision as of 15:46, 20 March 2018 by M Janczyk (talk | contribs) (Created page with "= Installation instructions = Consider starting an interactive job for compiling. Just copy paste this to your shell (please only copy line by line so you see errors fast). ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Installation instructions

Consider starting an interactive job for compiling. Just copy paste this to your shell (please only copy line by line so you see errors fast).

module load math/R
mkdir -p ~/src
cd ~/src
# copy the JAGS-4.3.0.tar.gz here

# Build JAGS
tar xf JAGS-4.3.0.tar.gz
cd JAGS-4.3.0
./configure --prefix=$HOME/sw
make -j4
make install
cd ..

# Set up environment (you may want to put these lines in your ~/.bashrc as well)
export PATH=$PATH:$HOME/sw/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/sw/lib
export MANPATH=$MANPATH:$HOME/sw/man
export CFLAGS=-I$HOME/sw/include
export JAGS_LIBDIR=~/sw/lib

# Install rjags package from within R session
R -q
install.packages("rjags")
library("rjags")