Hi friends,
I am trying to dockerize an R shiny application which is generating a report using a Rmarkdown file. I want download a pdf report from this application. I have installed the tiny tex distribution for that purpose and my the output of tinytex:::is_tinytex()
is TRUE. However when the application start to knit the file i have an error of pdflatex not found. I am sharing my docker file any help regarding it would be much appreciated.
`
get shiny server and R from the rocker project
FROM rocker/shiny-verse:latest
system libraries
Try to only install system libraries you actually need
Package Manager is a good resource to help discover system deps
RUN apt-get update && apt-get install -y \
libcurl4-gnutls-dev \
libssl-dev
RUN Rscript -e "install.packages('RODBC')"
RUN Rscript -e "install.packages('sqldf')"
RUN Rscript -e "install.packages('dplyr')"
RUN Rscript -e "install.packages('shinyWidgets')"
RUN Rscript -e "install.packages('tinytex')"
RUN Rscript -e "tinytex::install_tinytex()"
apt-get and system utilities
RUN apt-get update && apt-get install -y \
curl apt-utils apt-transport-https debconf-utils gcc build-essential \
&& rm -rf /var/lib/apt/lists/*
Not a solution but you may upload your Dockerfile as a Github gist (like I did here). This way its easier to download and use.
I may have time to look into your problem later this week but I can't promise.
Hi friends, I am trying to dockerize an R shiny application which is generating a report using a Rmarkdown file. I want download a pdf report from this application. I have installed the tiny tex distribution for that purpose and my the output of tinytex:::is_tinytex() is TRUE. However when the application start to knit the file i have an error of pdflatex not found. I am sharing my docker file any help regarding it would be much appreciated.
`
FROM rocker/shiny-verse:latest
RUN Rscript -e "install.packages('RODBC')" RUN Rscript -e "install.packages('sqldf')" RUN Rscript -e "install.packages('dplyr')" RUN Rscript -e "install.packages('shinyWidgets')" RUN Rscript -e "install.packages('tinytex')" RUN Rscript -e "tinytex::install_tinytex()"