Closed annakrystalli closed 2 years ago
Hi @annakrystalli , thanks for the bug report! I'm guessing this has something to do with $NB_USER maybe not being in the staff
group or some related permission problem?
tinytex is installed system-wide in the verse
image (from which binder images inherit), users in staff group should then be able to write (e.g. install to) /opt/TinyTex, just like they can install system-wide R packages to /usr/local/R/site.library by being a member of staff... It looks like your Dockerfile re-installs tinytex as NB_USER, so it puts a copy in the user's home dir, which of course should work but like you say shouldn't be necessary. Will need to do some actual splunking to confirm...
Aha! That makes sense. So do you think this is something handled best at the holepunch
Dockerfile
template level then?
BTW, when you say:
tinytex is installed system-wide in the verse image (from which binder images inherit),
do you mean tinytex
, the package, is installed or the function tinytex::install_tinytex()
is run?
I think this issue has been resolved, so I will close it.
Just a heads up that, I could only get full
bookdown
functionality (ie ability to install additional LaTeX packages and rerender anRmd
manuscript to pdf) in this binderised research compendium using therocker/binder
image if I added the commandtinytex::install_tinytex()
to myDockerfile
made withholepunch
. Prior to that, knitinganalysis/paper/paper.Rmd
would fail.I'm not sure if
rocker-org/rocker-versioned
is trying to achieve this but given that so much effort goes into installingtinytex
, it would be nice if the installation step within the package is also run when initializing the container.