Skip to content
Snippets Groups Projects
Commit 86f5b58e authored by David Dorchies's avatar David Dorchies
Browse files

fix: crash on installation of tinytex

Remove automatic installation and raise an error instead with instructions for the user.

Fix #38
parent ed66667a
No related branches found
No related tags found
No related merge requests found
Pipeline #216923 failed
......@@ -36,10 +36,9 @@ render_report <- function(input,
if (output_format == "bookdown::pdf_book") {
if (!requireNamespace("tinytex", quietly = TRUE)) {
install.packages("tinytex")
}
if (!tinytex::is_tinytex()) {
tinytex::install_tinytex()
stop("For rendering report in PDF format, you should install tinytex first:\n",
"`install.packages('tinytex')`\n",
"`tinytex::install_tinytex()`")
}
if (file.exists(file.path(input, "_bookdown.yml"))) {
babel_lang <-
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment