Skip to content

Commit

Permalink
Issue #147: Remove cmdstanr from remote (#356)
Browse files Browse the repository at this point in the history
* Remove cmdstanr from Remotes

* Move into Additional_repositories

* Use stable release version rather than latest

* Use R universe version of cmdstanr and add to GH actions

* Move cmdstanr from Imports to Suggests

* Remove import statement in package

Former-commit-id: 6ee9839
Former-commit-id: 7d9b5e32d8be79d554b92b7f7b7bdaa3f07eeddf
  • Loading branch information
athowes authored Oct 2, 2024
1 parent f3c1f32 commit b2e8f6e
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/R-CMD-as-cran-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
extra-repositories: 'https://stan-dev.r-universe.dev'

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
rtools-version: ${{ matrix.config.rtools }}
extra-repositories: 'https://stan-dev.r-universe.dev'

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-cmdstan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
sudo apt-get install -y libpng-dev || true
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
extra-repositories: 'https://stan-dev.r-universe.dev'

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/codemeta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

extra-repositories: 'https://stan-dev.r-universe.dev'

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::codemetar
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint-changed-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
extra-repositories: 'https://stan-dev.r-universe.dev'

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

extra-repositories: 'https://stan-dev.r-universe.dev'

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
extra-repositories: 'https://stan-dev.r-universe.dev'

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/render-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:

- name: Setup R
uses: r-lib/actions/setup-r@v2

with:
use-public-rspm: true
extra-repositories: 'https://stan-dev.r-universe.dev'

- name: Setup pandoc
uses: r-lib/actions/setup-pandoc@v2

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
extra-repositories: 'https://stan-dev.r-universe.dev'

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Depends:
R (>= 3.5.0)
Imports:
brms,
cmdstanr,
ggplot2,
purrr,
stats,
Expand All @@ -50,9 +49,10 @@ Suggests:
sf,
tidybayes,
modelr,
patchwork
Remotes:
stan-dev/cmdstanr
patchwork,
cmdstanr
Additional_repositories:
https://stan-dev.r-universe.dev
Config/Needs/website:
r-lib/pkgdown,
epinowcast/enwtheme
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export(simulate_exponential_cases)
export(simulate_gillespie)
export(simulate_secondary)
export(simulate_uniform_cases)
import(cmdstanr)
import(ggplot2)
importFrom(brms,bf)
importFrom(brms,prior)
Expand Down
1 change: 0 additions & 1 deletion R/epidist-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"_PACKAGE"

#' @import ggplot2
#' @import cmdstanr

## usethis namespace: start
#' @importFrom dplyr filter select
Expand Down

0 comments on commit b2e8f6e

Please sign in to comment.