Fix BiocStyle & pkgdown interaction #108
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
pkgdown https://pkgdown.r-lib.org/ is an R package to build static websites from package documentation and vignettes.
pkgdown evaluates the output format of the vignettes, but it does not use it, since it generates html documents.
However, BiocStyle manually sets the out.format to "latex". This makes pkgdown generate an html file that then is passed to pdflatex, giving an error "\begin{document}" not found. The temporary .tex file contains an html version of the vignette.
It seems the only reason BiocStyle sets "out.format" to "latex" is to call
knit_theme$get(thm)$highlight
, by setting "out.format" to its former value everything seems to keep working.This change restores
"out.format"
, so pkgdown is still able to generate the html files. pdf vignettes still work as expected.