vubiostat / redcapAPI

R interface to REDCap (http://www.project-redcap.org/)
21 stars 27 forks source link

Discussion: Adding GitHub Action for R CMD check on PRs #398

Closed jubilee2 closed 4 months ago

jubilee2 commented 4 months ago

Background

I am considering adding a GitHub Action to run R CMD check on every pull request. This action would ensure that our R package is tested across multiple platforms (macOS, Linux, and Windows) before merging any changes.

Proposal

Benefits

Implementation

We can use the r-lib/actions GitHub Actions for this purpose. Here is a basic example of the workflow file: https://github.com/jubilee2/redcapAPI/blob/main/.github/workflows/r-cmd-check.yml

spgarbet commented 4 months ago

I did the for the r-yaml package recently and it works well. Make sure the .Rbuildignore file contains the CI files.