Skip to content

Commit

Permalink
Mask pdflatex using tinytex
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Apr 1, 2021
1 parent 492beb7 commit 97183f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Expand Up @@ -2,8 +2,7 @@ FROM runiverse/base

COPY buildtools /pkg
COPY entrypoint.sh /entrypoint.sh


COPY pdftinytex /root/bin/pdftinytex

RUN R -e 'install.packages("remotes");remotes::install_local("/pkg")'

Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Expand Up @@ -49,7 +49,7 @@ echo "buildtools::replace_rmarkdown_engine()" > /tmp/vignettehack.R
# Build source package. Try vignettes, but build without otherwise.
# R is weird like that, it should be possible to build the package even if there is a documentation bug.
#mv ${REPO}/.git tmpgit
R_TESTS="/tmp/vignettehack.R" R --no-init-file CMD build ${PKGDIR} --no-manual ${BUILD_ARGS} || VIGNETTE_FAILURE=1
R_TEXI2DVICMD=emulation PDFLATEX=pdftinytex R_TESTS="/tmp/vignettehack.R" R --no-init-file CMD build ${PKGDIR} --no-manual ${BUILD_ARGS} || VIGNETTE_FAILURE=1
if [ "$VIGNETTE_FAILURE" ]; then
echo "Trying to build without vignettes...."
R --no-init-file CMD build ${PKGDIR} --no-manual --no-build-vignettes ${BUILD_ARGS}
Expand Down
2 changes: 2 additions & 0 deletions pdftinytex
@@ -0,0 +1,2 @@
#!/bin/sh
Rscript -e "tinytex::pdflatex('$2',clean = FALSE)"

0 comments on commit 97183f4

Please sign in to comment.