Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/R-CMD-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ jobs:
R-CMD-check:
runs-on: ubuntu-latest
permissions:
contents: read # Needed to read .ver and commit SHA
# contents: write # Only if we were to commit the DESCRIPTION file change back
contents: read

steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to get commit SHA
fetch-depth: 0

- name: Set up R
uses: r-lib/actions/setup-R@v2
uses: r-lib/actions/setup-r@v2 # Corrected path
with:
r-version: '4.5.0'

Expand All @@ -44,7 +43,7 @@ jobs:
cat DESCRIPTION

- name: Install dependencies
uses: r-lib/actions/setup-R-dependencies@v2
uses: r-lib/actions/setup-r-dependencies@v2 # Corrected path
with:
packages: |
any::packrat
Expand All @@ -53,15 +52,14 @@ jobs:
needs: check

- name: Check package
uses: r-lib/actions/check-R-package@v2
uses: r-lib/actions/check-r-package@v2 # Corrected path
with:
upload-snapshots: true # Useful for debugging check failures
upload-snapshots: true

- name: Build package
id: build
run: |
R CMD build .
# Find the built package name
PKG_FILE=$(ls *.tar.gz)
echo "PKG_FILE=$PKG_FILE" >> $GITHUB_OUTPUT
echo "Built package file: $PKG_FILE"
Expand Down
Loading