Sign inSign up

remlapmot/rmdmetro

By remlapmot

•Updated almost 6 years ago

A Docker container for compiling Metropolis Beamer presentations in R Markdown

Image
0

10K+

remlapmot/rmdmetro repository overview

⁠rmdmetro

A Docker container for compiling Metropolis Beamer presentations in R Markdown.

The container installs the Fira Code, Fira Sans, Fira Mono, and Fira Math fonts.

Create a Dockerfile based on this image such as the following, copying in the files needed for your R Markdown Metropolis Beamer presentation.

FROM remlapmot/rmdmetro
RUN mkdir /home/example
COPY example.Rmd /home/example/example.Rmd
COPY bibliography.bib /home/example/bibliography.bib 
CMD cd /home/example \ 
    && R -e "rmarkdown::render('example.Rmd', encoding = 'UTF-8')"

Then copy the compiled pdf from the container, with a docker cp command such as

docker cp $(docker ps -alq):/home/example/example.pdf ./example/example.pdf

Tag summary

Content type

Image

Digest

Size

2.1 GB

Last updated

almost 6 years ago

docker pull remlapmot/rmdmetro