Skip to content

Commit

Permalink
Try installing cmdstanr another way
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed Jan 9, 2024
1 parent c13b4b9 commit 8113fa3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 28 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/check-fixed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ jobs:
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, local::.
needs: check
cache-version: 2

- name: Repos
run: |
cat("\noptions(repos=c(stan='https://mc-stan.org/r-packages/',CRAN ='https://cloud.r-project.org'))\n", file = "~/.Rprofile", append = TRUE)
shell: Rscript {0}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, local::., any::cmdstanr
needs: check
cache-version: 2

- name: Install CmdStan
shell: Rscript {0}
run: |
install.packages("cmdstanr")
cmdstanr::check_cmdstan_toolchain(fix = TRUE)
cmdstanr::install_cmdstan()
cmdstan <- file.path(Sys.getenv("RUNNER_TEMP"), "cmdstan")
file.rename(cmdstanr::cmdstan_path(), cmdstan)
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/check-implicit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,20 @@ jobs:
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, local::.
needs: check
cache-version: 2

- name: Repos
run: |
cat("\noptions(repos=c(stan='https://mc-stan.org/r-packages/',CRAN ='https://cloud.r-project.org'))\n", file = "~/.Rprofile", append = TRUE)
shell: Rscript {0}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, local::., any::cmdstanr
needs: check
cache-version: 2

- name: Install CmdStan
shell: Rscript {0}
run: |
install.packages("cmdstanr")
cmdstanr::check_cmdstan_toolchain(fix = TRUE)
cmdstanr::install_cmdstan()
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/cover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ jobs:
use-public-rspm: true
extra-repositories: 'https://mc-stan.org/r-packages/'

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr, local::.
needs: coverage
cache-version: 2

- name: Repos
run: |
cat("\noptions(repos=c(stan='https://mc-stan.org/r-packages/',CRAN ='https://cloud.r-project.org'))\n", file = "~/.Rprofile", append = TRUE)
shell: Rscript {0}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr, local::., any::cmdstanr
needs: coverage
cache-version: 2

- name: Install CmdStan
shell: Rscript {0}
run: |
install.packages("cmdstanr")
cmdstanr::check_cmdstan_toolchain(fix = TRUE)
cmdstanr::install_cmdstan()
- name: Test coverage
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ jobs:
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website
cache-version: 2

- name: Repos
run: |
cat("\noptions(repos=c(stan='https://mc-stan.org/r-packages/',CRAN ='https://cloud.r-project.org'))\n", file = "~/.Rprofile", append = TRUE)
shell: Rscript {0}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::., any::cmdstanr
needs: website
cache-version: 2

- name: Install CmdStan
shell: Rscript {0}
run: |
install.packages("cmdstanr")
cmdstanr::check_cmdstan_toolchain(fix = TRUE)
cmdstanr::install_cmdstan()
- name: Build site
Expand Down

0 comments on commit 8113fa3

Please sign in to comment.