Skip to content

[ci] install extra LaTeX packages so Windows can build the PDF manual - #358

Merged
bburns632 merged 1 commit into
mainfrom
fix/ci-windows-latex-manual
Sep 1, 2026
Merged

[ci] install extra LaTeX packages so Windows can build the PDF manual#358
bburns632 merged 1 commit into
mainfrom
fix/ci-windows-latex-manual

Conversation

@bburns632

Copy link
Copy Markdown
Collaborator

Problem

main has been red since #355 added the windows-latest job. R CMD check --as-cran fails at checking PDF version of manual:

* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
LaTeX errors found:
* checking PDF version of manual without index ... ERROR
* checking for non-standard things in the check directory ... NOTE
  'pkgnet-manual.tex'

The TinyTeX bundle that setup-tinytex installs on Windows is too minimal for Rd2pdf:

  • Attempt 1 (with index)pkgnet.Rcheck/pkgnet-manual.log shows a clean first pdflatex pass that stops immediately after Writing index file Rd2.idx (18 pages, vs. 19 on Linux). Check's LaTeX errors found: list is empty because the failure is outside pdflatex. That WARNING alone trips error-on: "warning".

  • Attempt 2 — R retries with R_RD4PDF=times (see the "without index" branch of tools:::.check_packages). Dropping inconsolata makes times.sty fall back to Courier, and Rdlatex.log dies with:

    ! Font T1/pcr/m/n/10=pcrr8t at 10.0pt not loadable: Metric (TFM) file not found.
    Cannot find pcrr8t.mf.
    

Ubuntu and macOS pass because their bundles (plus apt texinfo on Ubuntu) already cover this.

Fix

release.yml already has an Install additional LaTeX Packages step, and its windows-latest (R devel) job passed the identical --as-cran check in run 31666781512. ci.yml never got the equivalent step. This mirrors it.

collection-fontsrecommended supplies the missing Courier metrics; inconsolata keeps the primary (non-fallback) path working.

Applied to all three OSes rather than gated on Windows, both to match release.yml and to avoid the same latent breakage if the Linux/macOS bundles shift.

🤖 Generated with Claude Code

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>
@bburns632
bburns632 merged commit b945477 into main Sep 1, 2026
10 checks passed
@bburns632
bburns632 deleted the fix/ci-windows-latex-manual branch September 1, 2026 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant