Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add details on build_args to handle large vignettes #787

Closed
mikeroswell opened this issue Dec 13, 2023 · 2 comments
Closed

Add details on build_args to handle large vignettes #787

mikeroswell opened this issue Dec 13, 2023 · 2 comments

Comments

@mikeroswell
Copy link

I wrestled for a while with R CMD check failing on GH actions but succeeding on my machine, due to different arguments to R CMD build. With Help from Gábor Csárdi, I was able to adjust the check-standard.yaml to reproduce the desired, passing test on GH.

My solution was to replace

- uses: r-lib/actions/check-r-package@v2
        with:
          args: 'c("--no-manual", "--as-cran")'

with

- uses: r-lib/actions/check-r-package@v2
        with:
          args: 'c("--no-manual", "--as-cran")'
          build_args: c('--compact-vignettes=gs+qpdf')

Hoping you might consider including this in the yaml template, or at least documenting these build_args options a bit more on the README for check-r-package. Thanks!

@gaborcsardi
Copy link
Member

I am afraid that this would fail if gs and/or qpdf are not installed.

We could probably add it to the check examples, though, I think those should have gs and qpdf installed.

Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants