79172989

Date: 2024-11-09 14:41:24
Score: 0.5
Natty:
Report link

The answer is a subfolder should be added to the PATH variable, the working script is as follows

FROM rocker/rstudio:latest

# Install depencendcies

RUN apt-get update \

   && apt-get upgrade -y \

   && apt-get install -y 
 
#install tinytex 
RUN mkdir -p /tinytex
RUN Rscript -e ' install.packages("tinytex");tinytex::install_tinytex(dir="/tinytex",force=TRUE)'
ENV PATH="${PATH}:/tinytex/bin/x86_64-linux"

RUN tlmgr update --self
RUN tlmgr update --all
RUN tlmgr install \
        koma-script \
        caption \
        pgf \
        environ \
        tikzfill \
        tcolorbox \
        pdfcol


Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: tjerkie