Skip to content

Commit be03af5

Browse files
author
Max Czapanskiy
committed
Add DOCKERFILE
1 parent 876bbec commit be03af5

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
analysis
99
^data-raw$
1010
^runtime\.txt$
11+
^Dockerfile$

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# get the base image, the rocker/verse has R, RStudio and pandoc
2+
FROM rocker/verse:4.0.4
3+
4+
# required
5+
MAINTAINER Max Czapanskiy <[email protected]>
6+
7+
COPY . /cetaceanbcg
8+
9+
# go into the repo directory
10+
RUN . /etc/environment \
11+
# Install linux depedendencies here
12+
# e.g. need this for ggforce::geom_sina
13+
&& sudo apt-get update \
14+
&& sudo apt-get install libudunits2-dev -y \
15+
# build this compendium package
16+
&& R -e "devtools::install('/cetaceanbcg', dep=TRUE)" \
17+
# render the manuscript into a docx, you'll need to edit this if you've
18+
# customised the location and name of your main Rmd file
19+
&& R -e "rmarkdown::render('/cetaceanbcg/analysis/paper/paper.Rmd')"

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Authors <- "Czapanskiy, M. F., Ponganis, P. J., Fahlbusch, J. A., and Goldbogen,
1717

1818
# cetaceanbcg
1919

20-
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh///main?urlpath=rstudio)
20+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/FlukeAndFeather/cetaceanbcg/main?urlpath=rstudio)
2121

2222
This repository contains the data and code for our paper:
2323

0 commit comments

Comments
 (0)