Skip to content

Commit 717d851

Browse files
authored
Merge pull request #291 from stan-dev/patch-for-cran
Minor release v1.10.0
2 parents 718b585 + 10eac64 commit 717d851

File tree

211 files changed

+39050
-6192
lines changed

Some content is hidden

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

211 files changed

+39050
-6192
lines changed

.Rbuildignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ book/*
1414
docs/*
1515
Rplots.pdf
1616
^\.github$
17-
^tests/testthat/_snaps$

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

Lines changed: 26 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
13
on:
24
push:
3-
branches:
4-
- master
5+
branches: [main, master]
56
pull_request:
6-
branches:
7-
- master
7+
branches: [main, master, patch-for-cran]
88

99
name: R-CMD-check
1010

1111
jobs:
1212
R-CMD-check:
13-
if: "! contains(github.event.head_commit.message, '[ci skip]')"
1413
runs-on: ${{ matrix.config.os }}
1514

1615
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
@@ -19,85 +18,36 @@ jobs:
1918
fail-fast: false
2019
matrix:
2120
config:
21+
- {os: macos-latest, r: 'release'}
2222
- {os: windows-latest, r: 'release'}
23-
- {os: macOS-latest, r: 'release'}
24-
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
25-
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
23+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
24+
- {os: ubuntu-latest, r: 'release'}
25+
- {os: ubuntu-latest, r: 'oldrel-1'}
26+
2627
env:
27-
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
28-
RSPM: ${{ matrix.config.rspm }}
2928
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
29+
R_KEEP_PKG_SOURCE: yes
3030

3131
steps:
32-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v3
33+
34+
- uses: r-lib/actions/setup-pandoc@v2
3335

34-
- uses: r-lib/actions/setup-r@master
36+
- uses: r-lib/actions/setup-r@v2
3537
with:
3638
r-version: ${{ matrix.config.r }}
39+
http-user-agent: ${{ matrix.config.http-user-agent }}
40+
use-public-rspm: true
3741

38-
- uses: r-lib/actions/setup-pandoc@master
39-
40-
- name: Query dependencies
41-
run: |
42-
install.packages('remotes')
43-
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
44-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
45-
shell: Rscript {0}
46-
47-
- name: Cache R packages
48-
if: runner.os != 'Windows'
49-
uses: actions/cache@v1
42+
- uses: r-lib/actions/setup-r-dependencies@v2
5043
with:
51-
path: ${{ env.R_LIBS_USER }}
52-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
53-
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
54-
55-
- name: Install system dependencies for linux
56-
if: runner.os == 'Linux'
57-
env:
58-
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
59-
run: |
60-
Rscript -e "remotes::install_github('r-hub/sysreqs')"
61-
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
62-
sudo -s eval "$sysreqs"
63-
64-
- name: Install system dependencies for mac
65-
if: runner.os == 'MacOS'
66-
run: |
67-
curl -sL https://mac.r-project.org/libs-4/ |
68-
sed -n 's/.*href=\([^>]*x86_64.tar.gz\).*/\1/p' |
69-
xargs -I % sh -c 'curl https://mac.r-project.org/libs-4/% --output %; sudo tar fvxz % -C /usr/local --strip 2'
70-
ls -la /usr/local/lib
71-
ls -la /usr/local/include
72-
73-
- name: Install dependencies
74-
run: |
75-
remotes::install_deps(dependencies = TRUE)
76-
remotes::install_cran("rcmdcheck")
77-
shell: Rscript {0}
78-
79-
- name: Session info
80-
run: |
81-
options(width = 100)
82-
pkgs <- installed.packages()[, "Package"]
83-
sessioninfo::session_info(pkgs, include_base = TRUE)
84-
shell: Rscript {0}
85-
86-
- name: Check
87-
env:
88-
_R_CHECK_CRAN_INCOMING_: false
89-
_R_CHECK_FORCE_SUGGESTS_: false
90-
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
91-
shell: Rscript {0}
92-
93-
- name: Show testthat output
94-
if: always()
95-
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
96-
shell: bash
97-
98-
- name: Upload check results
99-
if: failure()
100-
uses: actions/upload-artifact@master
44+
extra-packages: |
45+
any::rcmdcheck
46+
any::BH
47+
any::RcppEigen
48+
any::vdiffr
49+
needs: check
50+
51+
- uses: r-lib/actions/check-r-package@v2
10152
with:
102-
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
103-
path: check
53+
upload-snapshots: true

.github/workflows/codecov.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/test-coverage.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master, patch-for-cran]
8+
9+
name: test-coverage
10+
11+
jobs:
12+
test-coverage:
13+
runs-on: ubuntu-latest
14+
env:
15+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- uses: r-lib/actions/setup-r@v2
21+
with:
22+
use-public-rspm: true
23+
24+
- uses: r-lib/actions/setup-r-dependencies@v2
25+
with:
26+
extra-packages: |
27+
any::covr
28+
any::vdiffr
29+
needs: coverage
30+
31+
- name: Test coverage
32+
run: |
33+
covr::codecov(
34+
quiet = FALSE,
35+
clean = FALSE,
36+
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
37+
)
38+
shell: Rscript {0}
39+
40+
- name: Show testthat output
41+
if: always()
42+
run: |
43+
## --------------------------------------------------------------------
44+
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
45+
shell: bash
46+
47+
- name: Upload test results
48+
if: failure()
49+
uses: actions/upload-artifact@v3
50+
with:
51+
name: coverage-test-failures
52+
path: ${{ runner.temp }}/package

DESCRIPTION

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
Package: bayesplot
22
Type: Package
33
Title: Plotting for Bayesian Models
4-
Version: 1.9.0.9000
5-
Date: 2022-03-09
4+
Version: 1.10.0
5+
Date: 2022-11-15
66
Authors@R: c(person("Jonah", "Gabry", role = c("aut", "cre"), email = "jsg2201@columbia.edu"),
77
person("Tristan", "Mahr", role = "aut"),
88
person("Paul-Christian", "Bürkner", role = "ctb"),
99
person("Martin", "Modrák", role = "ctb"),
1010
person("Malcolm", "Barrett", role = "ctb"),
1111
person("Frank", "Weber", role = "ctb"),
1212
person("Eduardo", "Coronado Sroka", role = "ctb"),
13+
person("Teemu", "Sailynoja", role = "ctb"),
1314
person("Aki", "Vehtari", role = "ctb"))
1415
Maintainer: Jonah Gabry <jsg2201@columbia.edu>
1516
Description: Plotting functions for posterior analysis, MCMC diagnostics,
@@ -54,7 +55,7 @@ Suggests:
5455
survival,
5556
testthat (>= 2.0.0),
5657
vdiffr (>= 1.0.2)
57-
RoxygenNote: 7.1.2
58+
RoxygenNote: 7.2.2
5859
VignetteBuilder: knitr
5960
Encoding: UTF-8
6061
Roxygen: list(markdown = TRUE)

NAMESPACE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ import(rlang)
188188
import(stats)
189189
importFrom(dplyr,"%>%")
190190
importFrom(dplyr,across)
191+
importFrom(dplyr,all_of)
191192
importFrom(dplyr,arrange)
192193
importFrom(dplyr,count)
193194
importFrom(dplyr,full_join)
@@ -205,5 +206,3 @@ importFrom(dplyr,top_n)
205206
importFrom(dplyr,ungroup)
206207
importFrom(dplyr,vars)
207208
importFrom(ggplot2,"%+replace%")
208-
importFrom(ggridges,geom_density_ridges)
209-
importFrom(ggridges,geom_density_ridges2)

NEWS.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
<!-- See http://style.tidyverse.org/news.html for advice on writing news -->
22

3-
# bayesplot 1.9.0.9000
4-
5-
Items for next release go here
3+
# bayesplot 1.10.0
4+
5+
* New function `mcmc_rank_ecdf()` for rank ecdf plots with confidence bands for
6+
assessing if two or more chains sample the same distribution (#282,
7+
@TeemuSailynoja)
8+
* New functions `ppc_pit_ecdf()`, `ppc_pit_ecdf_grouped()`, PIT ecdf plots with
9+
confidence bands to assess if `y` and `yrep` contain samples from the same
10+
distribution. (#282, @TeemuSailynoja)
11+
* Several `ppc` and `ppd` functions now accept the new `linewidth` argument
12+
introduced in ggplot2 3.4.0: `ppc_bars()`, `ppc_bars_grouped()`,
13+
`ppc_intervals()`, `ppc_intervals_grouped()`, `ppd_intervals()`,
14+
`ppd_intervals_grouped()`.
15+
* Fix bug in how `mcmc_pairs()` detected hitting `max_treedepth`, thanks to @dmphillippo. (#281)
16+
* Fix failing tests due to changes in ggplot2 3.4.0 (#289)
617

718
# bayesplot 1.9.0
819

R/bayesplot-colors.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,12 @@ plot_scheme <- function(scheme = NULL) {
221221
value = rep(1, length(x))
222222
)
223223

224-
ggplot(color_data, aes_(x = ~ name, y = ~ value, fill = ~ group)) +
224+
ggplot(color_data, aes(x = .data$name, y = .data$value, fill = .data$group)) +
225225
geom_bar(
226226
width = .5,
227227
stat = "identity",
228228
color = "white",
229-
size = 0.1
229+
linewidth = 0.1
230230
) +
231231
scale_fill_manual("", values = unlist(x)) +
232232
theme_void() +

R/bayesplot-ggplot-themes.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ theme_default <-
4545
panel.grid = element_blank(),
4646
panel.background = element_blank(),
4747
panel.border = element_blank(),
48-
axis.line = element_line(size = 0.4),
49-
axis.ticks = element_line(size = 0.3),
48+
axis.line = element_line(linewidth = 0.4),
49+
axis.ticks = element_line(linewidth = 0.3),
5050
strip.background = element_blank(),
5151
strip.text = element_text(size = rel(0.9)),
5252
strip.placement = "outside",

0 commit comments

Comments
 (0)