-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
28 lines (21 loc) · 951 Bytes
/
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
# get the base image, the rocker/verse has R, RStudio and pandoc
FROM rocker/verse:3.4.1
# required
MAINTAINER Ben Marwick <benmarwick@gmail.com>
COPY . /datacitation
# go into the repo directory
RUN . /etc/environment \
# Install linux depedendencies here
# e.g. need this for ggforce::geom_sina
&& sudo apt-get update \
&& sudo apt-get install libudunits2-dev -y \
# need current dev version of some pkgs/not on CRAN
&& R -e "devtools::install_github('benmarwick/wordcountaddin')" \
&& R -e "devtools::install_github('ropenscilabs/crevents')" \
&& R -e "devtools::install_github('chartgerink/osfr')" \
&& R -e "devtools::install_github('tidyverse/ggplot2')" \
&& R -e "devtools::install_github('karthik/wesanderson')" \
# build this compendium package
&& R -e "devtools::install('/datacitation', dep=TRUE)" \
# render the manuscript into a docx
&& R -e "rmarkdown::render('/datacitation/analysis/paper/paper.Rmd')"