Skip to content

Commit

Permalink
manually install up-to-date rstan
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Oct 10, 2023
1 parent 44a641a commit 9b30403
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
matrix:
config:
- {os: macOS-latest, r: 'release', rtools: ''}
- {os: windows-latest, r: 'release', rtools: '42'}
## to reactivate once rstan is updated on CRAN
## - {os: windows-latest, r: 'release', rtools: '42'}
- {os: ubuntu-latest, r: 'release', rtools: ''}
- {os: ubuntu-latest, r: 'oldrel-1', rtools: ''}
- {os: ubuntu-latest, r: 'devel', rtools: ''}
Expand All @@ -54,6 +55,8 @@ jobs:
sudo apt-get install -y libcurl4-openssl-dev || true
sudo apt-get install -y openmpi-bin openmpi-common libopenmpi-dev || true
sudo apt-get install -y libpng-dev || true
## to remove once rstan is updated on CRAN
sudo apt-get install -y libharfbuzz-dev libfribidi-dev || true
- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
Expand All @@ -68,6 +71,14 @@ jobs:
extra-packages: any::rcmdcheck
needs: check

## to remove once rstan is updated on CRAN
- name: Manually install dev versions of StanHeaders and rstan
run: |
install.packages("devtools")
devtools::install_github("stan-dev/rstan/StanHeaders@develop")
devtools::install_github("stan-dev/rstan/rstan/rstan@develop")
shell: Rscript {0}

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
10 changes: 9 additions & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ jobs:
extra-packages: any::covr
needs: coverage

## to remove once rstan is updated on CRAN
- name: Manually install dev versions of StanHeaders and rstan
run: |
install.packages("devtools")
devtools::install_github("stan-dev/rstan/StanHeaders@develop")
devtools::install_github("stan-dev/rstan/rstan/rstan@develop")
shell: Rscript {0}

- name: Test coverage
run: covr::codecov(quiet = FALSE)
shell: Rscript {0}
shell: Rscript {0}

0 comments on commit 9b30403

Please sign in to comment.