Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Dec 6, 2023
1 parent 5befa1f commit b897bf6
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions scripts/install_cran_pkgs.R
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,10 @@ tlmgr install makeindex metafont mfware inconsolata tex ae parskip listings xcol
tlmgr path add
'
# nolint end
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"))
} else {
cat("TinyTex installer output:\n", exit_status, "\n")
exit_status <- system(tinytex_installer)
cat("TinyTex installer exited with code =", exit_status, "\n")
if (exit_status != 0) {
quit(status = exit_status)
}
tinytex::r_texmf()
permission_update <- '
Expand All @@ -297,12 +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_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"))
} else {
cat("TinyTex permission update output:\n", exit_status, "\n")
exit_status <- system(permission_update)
cat("TinyTex installer exited with code =", exit_status, "\n")
if (exit_status != 0) {
quit(status = exit_status)
}
}

Expand Down

0 comments on commit b897bf6

Please sign in to comment.