Skip to content

Instantly share code, notes, and snippets.

@zuphilip
Last active July 24, 2020 11:07
Show Gist options
  • Save zuphilip/a8ba7e877b51ab7f851421ff1cf5de01 to your computer and use it in GitHub Desktop.
Save zuphilip/a8ba7e877b51ab7f851421ff1cf5de01 to your computer and use it in GitHub Desktop.
Test to run a RMarkdown in Binder
## Use a tag instead of "latest" for reproducibility
FROM rocker/binder:latest
## Declares build arguments
ARG NB_USER
ARG NB_UID
## Copies your repo files into the Docker Container, install needed LaTeX packages
USER root
RUN apt-get update && apt-get install -y --no-install-recommends xsltproc texlive-lang-german
# ifxetex ifluatex fixltx2e inputenc xeCJK longtable
RUN tlmgr install csquotes amsmath eurosym mathspec fontspec upquote microtype geometry hyperref polyglossia natbib biblatex fancyvrb booktabs grffile ulem parskip bidi fancyhdr caption infwarerr babel-german newfloat epstopdf epstopdf-pkg
COPY . ${HOME}
RUN chown -R ${NB_USER} ${HOME}
## Become normal user again
USER ${NB_USER}
## Run an install.R script, if it exists.
#RUN if [ -f install.R ]; then R --quiet -f install.R; fi
install.packages("effsize")
install.packages("prmisc")
install.packages("binb")
library("devtools") # if not available: install.packages("devtools")
install_github("m-Py/prmisc")
install.packages("bibliometrix")
install.packages("shiny")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment