Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Dec 6, 2023
1 parent a325595 commit 5c823d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ RUN ./install_cran_pkgs.R ${DISTRIBUTION} && \
install_other_pkgs.R \
install_pip_pkgs.py

# Prevent pushing of the image without pdflatex installed.
RUN pdflatex --version

# Run RStudio
Expand Down
16 changes: 8 additions & 8 deletions scripts/install_cran_pkgs.R
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ tlmgr install makeindex metafont mfware inconsolata tex ae parskip listings xcol
tlmgr path add
'
# nolint end
exit_code <- system2("bash", args = c("-c", shQuote(tinytex_installer)), stdout = FALSE, stderr = FALSE)
cat("TinyTex installation exit code:", exit_code, "\n")
if (exit_code != 0) {
quit(status = exit_code, save = "no")
exit_status <- system2("bash", args = c("-c", shQuote(tinytex_installer)), stdout = TRUE, stderr = TRUE)
if ("status" %in% names(attributes(exit_status))) {
cat("TinyTex installer exited with code =", attr(exit_status, "status"), "\n")
quit(status = attr(exit_status, "status"))
}
tinytex::r_texmf()
permission_update <- '
Expand All @@ -295,10 +295,10 @@ chmod -R g+wx /opt/TinyTeX/bin
export PATH=/opt/TinyTeX/bin/x86_64-linux:${PATH}
echo "PATH=${PATH}" >> ${R_HOME}/etc/Renviron
'
exit_code <- system2("bash", args = c("-c", shQuote(permission_update)), stdout = FALSE, stderr = FALSE)
cat("TinyTex permission update exit code:", exit_code, "\n")
if (exit_code != 0) {
quit(status = exit_code, save = "no")
exit_status <- system2("bash", args = c("-c", shQuote(permission_update)), stdout = TRUE, stderr = TRUE)
if ("status" %in% names(attributes(exit_status))) {
cat("TinyTex permission update exited with code =", attr(exit_status, "status"), "\n")
quit(status = attr(exit_status, "status"))
}
}

Expand Down

0 comments on commit 5c823d7

Please sign in to comment.