Skip to content

Instantly share code, notes, and snippets.

@munoztd0
Created May 12, 2026 08:21
Show Gist options
  • Select an option

  • Save munoztd0/23c12bdddf0e1c56f49b2e38bc962ffe to your computer and use it in GitHub Desktop.

Select an option

Save munoztd0/23c12bdddf0e1c56f49b2e38bc962ffe to your computer and use it in GitHub Desktop.
to create actual snapshot for snapshot_download_gh()
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
push:
branches:
- main
workflow_dispatch:
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Setup dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
- name: Run R CMD check
uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--as-cran")'
error-on: '"warning"'
upload-snapshots: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment