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.
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.