Skip to content

Commit 4c7a153

Browse files
Merge branch 'master' into update-pkgdown
2 parents cec208f + c0217c0 commit 4c7a153

66 files changed

Lines changed: 2872 additions & 383 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ vignettes/loo2-non-factorized_cache/*
2424
^release-prep\.R$
2525
^_pkgdown\.yml$
2626
^pkgdown$
27+
^touchstone$

.gitattributes

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
* text=auto
22
data/* binary
3-
src/* text=lf
4-
R/* text=lf
3+
src/* text eol=lf
4+
R/* text eol=lf
5+
*.rda binary
6+

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions"
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
R_KEEP_PKG_SOURCE: yes
3131

3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@v6
3434

3535
- uses: r-lib/actions/setup-pandoc@v2
3636

.github/workflows/pkgdown.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
permissions:
2424
contents: write
2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v6
2727

2828
- uses: r-lib/actions/setup-pandoc@v2
2929

.github/workflows/test-coverage.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ on:
77

88
name: test-coverage.yaml
99

10-
permissions: read-all
10+
permissions:
11+
contents: read
12+
id-token: write
1113

1214
jobs:
1315
test-coverage:
@@ -16,7 +18,7 @@ jobs:
1618
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1719

1820
steps:
19-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v6
2022

2123
- uses: r-lib/actions/setup-r@v2
2224
with:
@@ -34,17 +36,18 @@ jobs:
3436
clean = FALSE,
3537
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
3638
)
39+
print(cov)
3740
covr::to_cobertura(cov)
3841
shell: Rscript {0}
3942

40-
- uses: codecov/codecov-action@v4
43+
- uses: codecov/codecov-action@v6
4144
with:
42-
# Fail if error if not on PR, or if on PR and token is given
45+
# Fail if error if not on PR, or if on PR and token is given--dependabot is treated like fork
4346
fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
44-
file: ./cobertura.xml
45-
plugin: noop
47+
files: ./cobertura.xml
48+
plugins: noop
4649
disable_search: true
47-
token: ${{ secrets.CODECOV_TOKEN }}
50+
use_oidc: true
4851

4952
- name: Show testthat output
5053
if: always()
@@ -55,7 +58,7 @@ jobs:
5558

5659
- name: Upload test results
5760
if: failure()
58-
uses: actions/upload-artifact@v4
61+
uses: actions/upload-artifact@v7
5962
with:
6063
name: coverage-test-failures
6164
path: ${{ runner.temp }}/package
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Continuous Benchmarks (Comment)
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.run_id }}
5+
cancel-in-progress: true
6+
7+
on:
8+
workflow_run:
9+
workflows: ["Continuous Benchmarks (Receive)"]
10+
types: [completed]
11+
12+
jobs:
13+
comment:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
pull-requests: write
18+
if: ${{ github.event.workflow_run.event == 'pull_request' }}
19+
steps:
20+
- name: Download Touchstone artifact
21+
id: download
22+
uses: actions/download-artifact@v8
23+
with:
24+
name: pr
25+
github-token: ${{ github.token }}
26+
repository: ${{ github.repository }}
27+
run-id: ${{ github.event.workflow_run.id }}
28+
29+
# defensive since issues could cause commenting in random places
30+
- name: Read PR number
31+
id: pr
32+
shell: bash
33+
run: |
34+
number="$(tr -cd '0-9' < ./NR)"
35+
test -n "$number"
36+
echo "number=$number" >> "$GITHUB_OUTPUT"
37+
38+
- name: Create or update sticky PR comment
39+
id: comment
40+
uses: marocchino/sticky-pull-request-comment@v3
41+
with:
42+
GITHUB_TOKEN: ${{ github.token }}
43+
number_force: ${{ steps.pr.outputs.number }}
44+
header: touchstone
45+
path: ./info.txt
46+
skip_unchanged: true
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Continuous Benchmarks (Receive)
2+
3+
permissions:
4+
contents: read
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.head_ref }}
8+
cancel-in-progress: true
9+
10+
on:
11+
pull_request:
12+
13+
jobs:
14+
prepare:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
config: ${{ steps.read_touchstone_config.outputs.config }}
18+
steps:
19+
- name: Checkout repo
20+
uses: actions/checkout@v6
21+
with:
22+
fetch-depth: 0
23+
24+
- id: read_touchstone_config
25+
run: |
26+
echo "config=$(jq -c . ./touchstone/config.json)" >> $GITHUB_OUTPUT
27+
28+
build:
29+
needs: prepare
30+
runs-on: ${{ matrix.config.os }}
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
config:
35+
- ${{ fromJson(needs.prepare.outputs.config) }}
36+
steps:
37+
- name: Checkout repo
38+
uses: actions/checkout@v6
39+
with:
40+
fetch-depth: 0
41+
- uses: lorenzwalthert/touchstone/actions/receive@main
42+
with:
43+
r-version: ${{ matrix.config.r }}

CRAN-SUBMISSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Version: 2.8.0
2-
Date: 2024-07-03 16:27:12 UTC
3-
SHA: 23e68bf5fb8aa9d000358f3bbbf52cf7ee92a99c
1+
Version: 2.9.0
2+
Date: 2025-12-22 18:21:47 UTC
3+
SHA: fd95b46e4868019ff05034384f28f12960f69f33

DESCRIPTION

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Type: Package
22
Package: loo
33
Title: Efficient Leave-One-Out Cross-Validation and WAIC for Bayesian Models
4-
Version: 2.8.0.9000
5-
Date: 2024-07-03
4+
Version: 2.9.0.9000
5+
Date: 2025-12-22
66
Authors@R: c(
7-
person("Aki", "Vehtari", , "Aki.Vehtari@aalto.fi", role = "aut"),
8-
person("Jonah", "Gabry", , "jsg2201@columbia.edu", role = c("cre", "aut")),
7+
person("Aki", "Vehtari", email = "Aki.Vehtari@aalto.fi", role = "aut"),
8+
person("Jonah", "Gabry", email = "jgabry@gmail.com", role = c("cre", "aut")),
99
person("Måns", "Magnusson", role = "aut"),
1010
person("Yuling", "Yao", role = "aut"),
1111
person("Paul-Christian", "Bürkner", role = "aut"),
@@ -14,9 +14,11 @@ Authors@R: c(
1414
person("Ben", "Goodrich", role = "ctb"),
1515
person("Juho", "Piironen", role = "ctb"),
1616
person("Bruno", "Nicenboim", role = "ctb"),
17-
person("Leevi", "Lindgren", role = "ctb")
17+
person("Leevi", "Lindgren", role = "ctb"),
18+
person("Visruth", "Srimath Kandali", role = "ctb"),
19+
person("Florence", "Bockting", role = "ctb")
1820
)
19-
Maintainer: Jonah Gabry <jsg2201@columbia.edu>
21+
Maintainer: Jonah Gabry <jgabry@gmail.com>
2022
Description: Efficient approximate leave-one-out cross-validation (LOO)
2123
for Bayesian models fit using Markov chain Monte Carlo, as described
2224
in Vehtari, Gelman, and Gabry (2017) <doi:10.1007/s11222-016-9696-4>.
@@ -36,7 +38,7 @@ Imports:
3638
checkmate,
3739
matrixStats (>= 0.52),
3840
parallel,
39-
posterior (>= 1.5.0),
41+
posterior (>= 1.7.0),
4042
stats
4143
Suggests:
4244
bayesplot (>= 1.7.0),

0 commit comments

Comments
 (0)