forked from gshamov/R2jags-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity
41 lines (38 loc) · 1.4 KB
/
Singularity
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Bootstrap: docker
From: rocker/r-ver:latest
%post
apt-get update
apt-get install -y libssl-dev libsasl2-dev jags autoconf automake
apt-get install -y curl wget libudunits2-dev bash libicu-dev libeigen3-dev
apt-get install -y gcc-multilib g++-multilib
# generic R packages
R -e "install.packages('ggplot2')"
R -e "install.packages('tidyr')"
R -e "install.packages('stringr')"
R -e "install.packages('data.table')"
R -e "install.packages('reshape2')"
R -e "install.packages('digest')"
R -e "install.packages('lattice')"
R -e "install.packages('colorspace')"
R -e "install.packages('labeling')"
R -e "install.packages('mvtnorm')"
#R2Jags
R -e "install.packages('boot')"
R -e "install.packages('coda')"
R -e "install.packages('rjags')"
R -e "install.packages('dclone')"
R -e "install.packages('R2jags')"
#R2OpenBUGS
wget http://pj.freefaculty.org/Ubuntu/15.04/amd64/openbugs/openbugs_3.2.3.orig.tar.gz
tar xzf openbugs_3.2.3.orig.tar.gz
cd openbugs-3.2.3
./configure
make && make check && make install
R -e "install.packages('R2OpenBUGS')"
#HPC directories just in case
mkdir /global
mkdir /global/scratch
mkdir /scratch
mkdir /project
%run
R --version