From 60a2239126ed867d80d1b7a4b3921a16f5becba0 Mon Sep 17 00:00:00 2001 From: bburns632 Date: Mon, 31 Aug 2026 23:07:42 -0500 Subject: [PATCH] [ci] install extra LaTeX packages so Windows can build the PDF manual 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) --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe5c3de..e5835a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,6 +61,16 @@ jobs: r-version: ${{ matrix.r-version }} - uses: r-lib/actions/setup-pandoc@d3c5be51b12e724e68f33216ca3c148b66d5f0b6 # v2.12.1 - uses: r-lib/actions/setup-tinytex@d3c5be51b12e724e68f33216ca3c148b66d5f0b6 # v2.12.1 + # the TinyTeX bundle is too minimal for '--as-cran' to build the PDF + # manual, so pull in the extra LaTeX packages Rd2pdf needs. Without + # collection-fontsrecommended, the retry that R CMD check makes with + # R_RD4PDF=times cannot find the Courier metrics (pcrr8t.tfm). + - name: Install additional LaTeX Packages + run: | + tlmgr update --self + tlmgr update --all + tlmgr install titling framed inconsolata + tlmgr install collection-fontsrecommended - uses: r-lib/actions/setup-r-dependencies@d3c5be51b12e724e68f33216ca3c148b66d5f0b6 # v2.12.1 with: extra-packages: any::rcmdcheck, any::covr