Newer
Older
image: eddelbuettel/r2u:jammy
## Install pandoc, system dependencies and fonts
- apt-get update -qq; apt-get install --no-install-recommends -y pandoc pandoc-citeproc fonts-liberation
## R-packages for building infrastructure
- install.r bookdown knitr pacman rmarkdown rmdformats tinytex targets tarchetypes
## Packages for computation
- install.r
cubature
bayesplot
brms
extraDistr
furrr
geodata
gifski
gganimate
here
hrbrthemes
janitor
kableExtra
knitr
mapview
progressr
readxl
rvest
simecol
sf
skimr
terra
tidyverse
tmap
## Non-CRAN packages
## remotes::install_github(...) # remember to add remotes as well
- R -e 'bspm::disable(); install.packages("sit", repos = c("https://cirad-astre.r-universe.dev", "https://cloud.r-project.org"))'
## Work around error: "Graphics API version mismatch"
- R -e 'bspm::disable(); install.packages("ggiraph")'
## LaTeX for compilation of PDF versions of reports
- R -e 'tinytex::install_tinytex()'
## Cirad LaTeX class
- wget https://forgemia.inra.fr/umr-astre/cirad/-/archive/master/cirad-master.zip
- unzip cirad-master.zip
- make --directory=cirad-master
- cp -a cirad-master/tex/latex/cirad ~/.TinyTeX/texmf-local/tex/latex
- ~/.TinyTeX/bin/x86_64-linux/tlmgr install koma-script collection-latexrecommended multirow
- ~/.TinyTeX/bin/x86_64-linux/texhash
## Font import
- R -e 'extrafont::font_import(); extrafont::loadfonts()'
## Compile documents
- mkdir -p public reports
- R -e 'targets::tar_make()'
- mv reports/* public