Skip to content

Commit f8b2c8e

Browse files
committed
Trying to fix lib paths?
1 parent 4d7d462 commit f8b2c8e

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/revdepcheck/run.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,11 @@ revdepcheck::revdep_check(
99
timeout = as.difftime(
1010
as.integer(Sys.getenv("TIMEOUT_MINUTES")),
1111
units = "mins"
12+
),
13+
quiet = FALSE,
14+
env = c(
15+
revdepcheck::revdep_env_vars(),
16+
R_LIBS_SITE = normalizePath(.libPaths()[1], mustWork = TRUE)
1217
)
1318
)
19+

.github/workflows/revdepcheck.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,21 @@ jobs:
4545
- uses: r-lib/actions/setup-r@v2
4646
with:
4747
use-public-rspm: true
48+
extra-repositories: |
49+
https://stan-dev.r-universe.dev
50+
51+
- name: Install system libraries for hard revdeps
52+
run: |
53+
sudo apt-get update
54+
sudo apt-get install -y libmagick++-dev libopenmpi-dev openmpi-bin
4855
4956
- uses: r-lib/actions/setup-r-dependencies@v2
5057
with:
5158
extra-packages: |
5259
r-lib/revdepcheck
5360
any::callr
5461
any::rstantools
62+
any::cmdstanr
5563
any::systemfonts
5664
any::textshaping
5765
any::ragg
@@ -68,6 +76,17 @@ jobs:
6876
any::Rmpi
6977
needs: check
7078

79+
- name: cmdstan env vars
80+
run: |
81+
echo "CMDSTAN_PATH=${HOME}/.cmdstan" >> "$GITHUB_ENV"
82+
shell: bash
83+
84+
- name: Install cmdstan
85+
run: |
86+
cmdstanr::check_cmdstan_toolchain()
87+
cmdstanr::install_cmdstan(cores = 2)
88+
shell: Rscript {0}
89+
7190
- name: Run revdepcheck
7291
id: revdep
7392
run: bash .github/revdepcheck/run.sh

0 commit comments

Comments
 (0)