-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shiny server in Docker #34
Comments
You may see this docker image for an example of installing TinyTeX in docker: https://github.com/rocker-org/rocker-versioned/blob/master/verse/Dockerfile |
Thank you @yihui. It worked! I followed the part where TinyTex is installed.
Now Interestingly enough I was just reading the same docker file and I was led to the TinyTex FAQ. Barely missed the part about the TinyTex installation. |
Good to know! |
Want to achieve the same objective as @leafyeh7 First I tried to install
But the Found this issue and put #34 (comment) into my dockerfile. After run
wondering if there is a way to solve this? Thank you in advance for any feedback. |
First know that install.packages("tinytex") will install the tinytex R packages and not TinyTeX, the LaTeX distribution. That is why pdflatex is not found because you did not installed LaTeX. If you want to follow rocker project example I would look at their new dockerfile and scripts to have example on how they install TeX Live on docker.
You can also follow FAQ 6 and 7 https://yihui.org/tinytex/faq/ to see how to install as an admin on Linux. We also now have a new installation process for binary on linux could also help maybe: https://yihui.org/tinytex/#installation You'll need to get the paths right, and the user access also. You could maybe do that from R in with Hope it helps |
Thanks very much for the reply, @cderv Ended up using a hybrid
This happened after deployed the container but before I want to knit a PDF document. Here is what I put into the dockerfile with the second script you pointed out for TinyTex installation.
|
My goal is to create a docker container that can handle PDF download (through rmarkdown) in Shiny server.
rmarkdown: version 1.9
tinytext: version 0.5
After installing tinytext (with
tinytex::install_tinytex()
), I have no idea on how to "restart" the system because it's in the docker environment, andsystemctl
is not available in the debian build.tinytex:::is_tinytex()
returns
FALSE
Is there a way to enable the tinytex without 'restarting' the system?
Thank you.
The text was updated successfully, but these errors were encountered: