I am using the github action r-lib/actions/check-r-package for checking my package aravind-j / germinationmetrics. My package includes a pdf vignette and hence requires ghostscript for checking the package.
I am the following error with ubuntu and windows.
❯ checking sizes of PDF files under ‘inst/doc’ ... NOTE
Unable to find GhostScript executable to run checks on size reduction
I have successfully installed it using the following code in yml.
- name: Install Ghostscript on Linux
if: runner.os == 'Linux'
run: sudo DEBIAN_FRONTEND=noninteractive apt-get install --yes ghostscript
- name: Install Ghostscript on Windows
if: runner.os == 'Windows'
run: choco install ghostscript --no-progress
However, the error persists for windows despite ghostscript being installed.
How to force the Windows build to discover ghostscript ?