Skip to content

Commit

Permalink
Do not build manual w/o pdflatex
Browse files Browse the repository at this point in the history
Closes #123.
  • Loading branch information
gaborcsardi committed Dec 8, 2021
1 parent 13c7714 commit 910a5ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# pkgbuild (development version)

# pkgbuild 1.2.1
* pkgbuild does not build the PDF manual now if `pdflatex` is not installed, even if `manual = TRUE` (#123).

# pkgbuild (development)
# pkgbuild 1.2.1

* Gábor Csárdi is now the maintainer.

Expand Down
1 change: 1 addition & 0 deletions R/build.R
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ build_setup_source <- function(path, dest_path, vignettes, manual, clean_doc,
no_manual <- "--no-manual" %in% args
if (!no_manual && !has_latex()) {
message("pdflatex not found! Not building PDF manual.")
manual <- FALSE
}

if (needs_compilation && (vignettes || manual)) {
Expand Down

0 comments on commit 910a5ce

Please # to comment.