Update R Packages
ActionsUpdate your R package dependencies with ease.
bumpercar
is a GitHub Action that automatically updates the versions of packages listed in the DESCRIPTION
file of your R package repository. It creates a pull request with the updated dependencies based on the latest compatible versions from CRAN.
Create a new workflow file to your R package repository: .github/workflows/bumpercar.yml
name: Update R DESCRIPTION dependencies
on:
schedule:
- cron: "0 2 * * 1" # Every Monday at 2am UTC
workflow_dispatch:
jobs:
bumpercar:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run bumpercar
uses: jahnen/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- Parses your
DESCRIPTION
file (Imports
,Depends
,Suggests
) - Looks up the latest versions of R packages from CRAN
- Preserves compatibility by only bumping minor/patch versions
- Run
R CMD check
with updated DESCRIPTION:- If
R CMD check
passed:- Creates a new Git branch and opens a pull request
- If
R CMD check
failed:- Create a new issue
- If
Update R Packages is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.