Skip to content

Try this

Try this #142

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
pull_request:
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
# max-parallel: 2 #try to avoid races due to concurrent db access
matrix:
config:
- {os: macOS-13, r: 'release'}
- {os: macOS-14, r: 'release'}
- {os: windows-latest, r: '4.1'}
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: 'devel'}
- {os: ubuntu-20.04, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-20.04, r: 'release'}
- {os: ubuntu-20.04, r: 'oldrel-4'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v4
- if: runner.os == 'macos'
run: |
brew tap mongodb/brew
brew install [email protected]
brew services start $(brew list --formula | grep mongodb-community)
- if: runner.os == 'linux'
run: sudo systemctl restart mongod
- if: runner.os == 'windows'
run: |
Set-Service mongodb -StartupType Automatic
# Start-Service -Name mongodb
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck
- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual","--run-dontrun","--as-cran")'