-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.rmarkdown
61 lines (54 loc) · 1.98 KB
/
Dockerfile.rmarkdown
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
55
56
57
58
59
60
61
FROM rocker/r-rmd
RUN apt-get update -y --allow-releaseinfo-change
# R ggplot2 dependencies
RUN apt-get install -y \
r-cran-ggplot2 \
r-cran-png \
# for installing the VisualResume package
r-cran-devtools \
# requirements for VisualResume package:
# sysfonts, shape, GlobalOptions, deSolve, contfrac, elliptic,
# RcppEigen, hypergeo, MatrixModels, gtools, mvtnorm,
# pbapply, coda, showtextdb, circlize, BayesFactor, jpeg, showtext, yarrr
r-cran-shape \
r-cran-globaloptions \
r-cran-desolve \
r-cran-contfrac \
r-cran-elliptic \
r-cran-rcppeigen \
r-cran-hypergeo \
r-cran-matrixmodels \
r-cran-gtools \
r-cran-mvtnorm \
r-cran-pbapply \
r-cran-coda \
r-cran-circlize \
r-cran-bayesfactor \
# other packages needed: sysfonts, colorspace, stringi, magrittr, glue, Rcpp, MatrixModels, showtextdb, jpeg, showtext, yarrr, desolve, pbapply
r-cran-colorspace \
r-cran-stringi \
r-cran-magrittr \
r-cran-glue \
r-cran-rcpp \
r-cran-rcppeigen \
# to compile the VisualResume package below
libfreetype6-dev \
# and needing the wordcloud package
r-cran-wordcloud \
# pdflatex for exporting to pdf
texlive-latex-base \
# to solve "Error: object ‘faststack’ is not exported by 'namespace:fastmap'"
r-cran-fastmap
# alternative is to install manually - super long as it will compile
# RUN R -e "install.packages('png')"
# installing VisualResume from the source - no cran package
# the following remaining dependencies will be installed: sysfonts, MatrixModels, showtextdb, jpeg, showtext, yarrr
# as it is linux, will be compiled but will take about 30s
RUN R -e "devtools::install_github(\"ndphillips/VisualResume\")"
# using xelatex instead of pdflatex for unicode/emoji support, adding xelatexemoji for rendering in PDF
RUN apt-get install -y texlive-xetex git
RUN git clone https://github.com/mreq/xelatex-emoji.git
RUN mv xelatex-emoji/*.sty /usr/share/texmf/
# this package is for including emojis in Rmarkdown
RUN R -e "devtools::install_github(\"hadley/emo\")"
CMD ["bash"]