CI: Check if package builds #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: R Package Check | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
branches: [ main, master ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Fetch all history for all tags and branches | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true # Use RStudio's public package manager for faster installs | |
- name: Install dependencies | |
run: | | |
install.packages("remotes") | |
remotes::install_deps(dependencies = TRUE) | |
- name: Check package | |
run: | | |
R CMD build . | |
R CMD check *tar.gz |