Skip to content

Add details on build_args to handle large vignettes  #787

@mikeroswell

Description

@mikeroswell

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions