Update 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/bumpercar@v1.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}- Parses your
DESCRIPTIONfile (Imports,Depends,Suggests) - Looks up the latest versions of R packages from CRAN
- Preserves compatibility by only bumping minor/patch versions
- Run
R CMD checkwith updated DESCRIPTION:- If
R CMD checkpassed:- Creates a new Git branch and opens a pull request
- If
R CMD checkfailed:- Create a new issue
- If

