Skip to content

Commit 139bc1c

Browse files
authored
Merge branch 'main' into release-1.5.0
2 parents 33c4a8d + 1280105 commit 139bc1c

File tree

9 files changed

+60
-28
lines changed

9 files changed

+60
-28
lines changed

.github/workflows/R-CMD-as-cran-check.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ jobs:
3333
- uses: r-lib/actions/setup-r@v2
3434
with:
3535
use-public-rspm: true
36+
extra-repositories: https://mc-stan.org/r-packages/
3637

3738
- uses: r-lib/actions/setup-r-dependencies@v2
3839
with:
3940
dependencies: NA
4041
extra-packages: |
4142
rcmdcheck
4243
rmarkdown
43-
stan-dev/cmdstanr
44+
cmdstanr
4445
testthat
4546
4647
- name: Install cmdstan

.github/workflows/R-CMD-check.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
r-version: ${{ matrix.config.r }}
5555
http-user-agent: ${{ matrix.config.http-user-agent }}
5656
use-public-rspm: true
57+
extra-repositories: https://mc-stan.org/r-packages/
5758

5859
- uses: r-lib/actions/setup-r-dependencies@v2
5960
with:
@@ -62,7 +63,7 @@ jobs:
6263
dplyr
6364
rmarkdown
6465
rcmdcheck
65-
stan-dev/cmdstanr
66+
cmdstanr
6667
testthat
6768
6869
- name: Install cmdstan

.github/workflows/lint-only-changed-files.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ jobs:
1818
- uses: actions/checkout@v4
1919

2020
- uses: r-lib/actions/setup-r@v2
21+
with:
22+
extra-repositories: https://mc-stan.org/r-packages/
2123

2224
- uses: r-lib/actions/setup-r-dependencies@v2
2325
with:
2426
dependencies: NA
2527
extra-packages: |
2628
here
2729
usethis
28-
stan-dev/cmdstanr
30+
cmdstanr
2931
any::gh
3032
any::lintr
3133
any::purrr
Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,61 @@
1+
name: render-readme
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.head_ref }}
5+
cancel-in-progress: true
6+
17
on:
28
workflow_dispatch:
39
push:
4-
paths:
5-
- .github/workflows/render-readme.yaml
6-
- 'README.Rmd'
10+
branches:
11+
- main
712

813
jobs:
914
render-readme:
10-
runs-on: ubuntu-latest
15+
runs-on: macos-latest
1116
env:
1217
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1318
steps:
14-
- uses: actions/checkout@v4
19+
- name: Checkout repos
20+
uses: actions/checkout@v4
1521

16-
- uses: r-lib/actions/setup-pandoc@v2
22+
- name: Setup R
23+
uses: r-lib/actions/setup-r@v2
1724

18-
- uses: r-lib/actions/setup-r@v2
19-
with:
20-
use-public-rspm: true
25+
- name: Setup pandoc
26+
uses: r-lib/actions/setup-pandoc@v2
2127

22-
- uses: r-lib/actions/setup-r-dependencies@v2
28+
- name: Install dependencies
29+
uses: r-lib/actions/setup-r-dependencies@v2
2330
with:
24-
dependencies: NA
25-
extra-packages: |
26-
any::pkgdown
27-
local::.
31+
extra-packages: any::rmarkdown, any::allcontributors
32+
33+
- name: Update contributors
34+
if: github.ref == 'refs/heads/main'
35+
run: allcontributors::add_contributors(format = "text")
36+
shell: Rscript {0}
2837

2938
- name: Compile the readme
3039
run: |
3140
rmarkdown::render("README.Rmd")
3241
shell: Rscript {0}
3342

34-
- name: Commit files
35-
run: |
36-
git config --local user.email "[email protected]"
37-
git config --local user.name "GitHub Action"
38-
git add README.md man/figures/
39-
git diff-index --quiet HEAD || git commit -m "Automatic readme update"
40-
git push origin || echo "No changes to push"
43+
- name: Upload README.md as an artifact
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: readme
47+
path: README.md
48+
49+
- name: Create Pull Request
50+
if: github.ref == 'refs/heads/main'
51+
uses: peter-evans/create-pull-request@v6
52+
with:
53+
commit-message: "Automatic README update"
54+
title: "Update README"
55+
body: "This is an automated pull request to update the README."
56+
branch: "update-readme-${{ github.run_number }}"
57+
labels: "documentation"
58+
add-paths: |
59+
README.Rmd
60+
README.md
61+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stan-model-benchmark.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ jobs:
2424
- uses: r-lib/actions/setup-r@v2
2525
with:
2626
use-public-rspm: true
27+
extra-repositories: https://mc-stan.org/r-packages/
2728

2829
- uses: r-lib/actions/setup-r-dependencies@v2
2930
with:
3031
packages: |
3132
local::.
3233
here
3334
purrr
34-
stan-dev/cmdstanr
35+
cmdstanr
3536
3637
- name: Install cmdstan
3738
run: |

.github/workflows/test-coverage.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ jobs:
2323
- uses: r-lib/actions/setup-r@v2
2424
with:
2525
use-public-rspm: true
26+
extra-repositories: https://mc-stan.org/r-packages/
2627

2728
- uses: r-lib/actions/setup-r-dependencies@v2
2829
with:
2930
dependencies: NA
3031
extra-packages: |
3132
covr
32-
stan-dev/cmdstanr
33+
cmdstanr
3334
testthat
3435
3536
- name: Install cmdstan

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Version: 1.4.9000
66
Authors@R:
77
c(person(given = "Sam",
88
family = "Abbott",
9-
role = c("aut", "cre"),
9+
role = c("aut"),
1010
email = "[email protected]",
1111
comment = c(ORCID = "0000-0001-8057-8037")),
1212
person(given = "Joel",
@@ -80,7 +80,7 @@ Authors@R:
8080
role = "aut"),
8181
person(given = "Sebastian",
8282
family = "Funk",
83-
role = "aut",
83+
role = c("aut", "cre"),
8484
email = "[email protected]",
8585
comment = c(ORCID = "0000-0002-2842-3406"))
8686
)

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# EpiNow2 1.5.0
22

3+
This release comes with a change of maintainer, from @seabbs to @sbfnk.
4+
This is to reflect who will handle the upcoming CRAN submission, but is not expected to lead to a change in workflows.
5+
36
## Major changes
47

58
* Delay discretisation is now based on a two-day censoring window (with uniform probability in between), based on recommendations in [Park et al, medRxiv, 2024](https://doi.org/10.1101/2024.01.12.24301247). By @sbfnk in #518 and reviewed by @jamesmbaazam.

README.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,5 @@ A simple example of using the package to estimate a national Rt for Covid-19 can
153153
We welcome all contributions. If you have identified an issue with the package,
154154
you can file an issue [here](https://github.com/epiforecasts/EpiNow2/issues). We also welcome additions and extensions to the underlying model either in the form of options or improvements. If you wish to contribute in any form, please follow the
155155
[package contributing guide](https://github.com/epiforecasts/EpiNow2/blob/main/.github/CONTRIBUTING.md).
156+
157+
## Contributors

0 commit comments

Comments
 (0)