forked from statsthinking21/statsthinking21-core-spanish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
54 lines (47 loc) · 1.18 KB
/
Dockerfile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Dockerfile for ThinkStats
FROM rocker/tidyverse
MAINTAINER Russ Poldrack <[email protected]>
RUN sudo apt-get clean all
RUN sudo apt-get update
RUN sudo apt-get dist-upgrade -y
RUN sudo apt-get autoremove
RUN apt-get install -y make git ssh
RUN apt-get install -y jags
RUN apt-get install -y gsl-bin libgsl-dev libv8-3.14.5
RUN apt-get install -y libudunits2-0
RUN apt-get install -y texlive-full
# installing R packages
RUN echo 'install.packages(c( \
"emmeans", \
"kableExtra", \
"MASS", \
"ggplot2", \
"tidyr", \
"readr", \
"mapproj", \
"pander", \
"DiagrammeR", \
"caret", \
"BayesMed", \
"modelr", \
"lmerTest", \
"lme4", \
"pwr", \
"BayesFactor", \
"boot", \
"dplyr", \
"cowplot", \
"brms", \
"tidyverse", \
"reshape2", \
"NHANES", \
"fivethirtyeight", \
"sfsmisc", \
"bookdown",\
"ggfortify"), \
repos="http://cran.us.r-project.org", dependencies=TRUE)' > /tmp/packages.R && \
Rscript /tmp/packages.R
# fiftystater was removed from CRAN so must be installed from the archive
RUN echo 'install.packages("https://cran.r-project.org/src/contrib/Archive/fiftystater/fiftystater_1.0.1.tar.gz",\
repos=NULL,dependencies=TRUE)' > /tmp/packages2.R && Rscript /tmp/packages2.R
CMD ["/bin/bash"]