[ci] install extra LaTeX packages so Windows can build the PDF manual - #358
Merged
Conversation
The Windows job added in #355 fails `R CMD check --as-cran` at "checking PDF version of manual". The TinyTeX bundle installed by setup-tinytex on Windows is too minimal for Rd2pdf: the first attempt stops right after writing the index, and R's automatic retry with R_RD4PDF=times falls back to Courier and cannot find pcrr8t.tfm. release.yml already installs these packages and its windows-latest job passes the same check; ci.yml never got the equivalent step. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
mainhas been red since #355 added thewindows-latestjob.R CMD check --as-cranfails at checking PDF version of manual:The TinyTeX bundle that
setup-tinytexinstalls on Windows is too minimal forRd2pdf:Attempt 1 (with index) —
pkgnet.Rcheck/pkgnet-manual.logshows a clean first pdflatex pass that stops immediately afterWriting index file Rd2.idx(18 pages, vs. 19 on Linux). Check'sLaTeX errors found:list is empty because the failure is outside pdflatex. That WARNING alone tripserror-on: "warning".Attempt 2 — R retries with
R_RD4PDF=times(see the "without index" branch oftools:::.check_packages). Droppinginconsolatamakestimes.styfall back to Courier, andRdlatex.logdies with:Ubuntu and macOS pass because their bundles (plus apt
texinfoon Ubuntu) already cover this.Fix
release.ymlalready has an Install additional LaTeX Packages step, and itswindows-latest (R devel)job passed the identical--as-crancheck in run 31666781512.ci.ymlnever got the equivalent step. This mirrors it.collection-fontsrecommendedsupplies the missing Courier metrics;inconsolatakeeps the primary (non-fallback) path working.Applied to all three OSes rather than gated on Windows, both to match
release.ymland to avoid the same latent breakage if the Linux/macOS bundles shift.🤖 Generated with Claude Code