Skip to content

Commit d6fde22

Browse files
authored
Merge pull request #1 from stan-dev/master
Update fork
2 parents 50f249e + ecb1676 commit d6fde22

File tree

249 files changed

+37730
-5813
lines changed

Some content is hidden

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

249 files changed

+37730
-5813
lines changed

.Rbuildignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
^CRAN-RELEASE$
12
^.*\.Rproj$
23
^\.Rproj\.user$
34
LICENSE
45
^\.travis\.yml$
56
^README\.md$
67
.gitignore
8+
.git/*
79
^cran-comments\.md$
810
^revdep$
911
man-roxygen/*
1012
images/*
13+
book/*
14+
docs/*
15+
Rplots.pdf
16+
tests/figs/*
17+
^\.github$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: stan-dev
2+
custom: https://mc-stan.org/support/

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

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- master
8+
9+
name: R-CMD-check
10+
11+
jobs:
12+
R-CMD-check:
13+
if: "! contains(github.event.head_commit.message, '[ci skip]')"
14+
runs-on: ${{ matrix.config.os }}
15+
16+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
config:
22+
- {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"}
26+
env:
27+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
28+
RSPM: ${{ matrix.config.rspm }}
29+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
30+
31+
steps:
32+
- uses: actions/checkout@v2
33+
34+
- uses: r-lib/actions/setup-r@master
35+
with:
36+
r-version: ${{ matrix.config.r }}
37+
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
50+
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
101+
with:
102+
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
103+
path: check

.github/workflows/codecov.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- master
8+
9+
name: test-coverage
10+
11+
jobs:
12+
test-coverage:
13+
if: "! contains(github.event.head_commit.message, '[ci skip]')"
14+
runs-on: macOS-latest
15+
env:
16+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- uses: r-lib/actions/setup-r@master
21+
22+
- uses: r-lib/actions/setup-pandoc@master
23+
24+
- name: Query dependencies
25+
run: |
26+
install.packages('remotes')
27+
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
28+
shell: Rscript {0}
29+
30+
- name: Cache R packages
31+
uses: actions/cache@v1
32+
with:
33+
path: ${{ env.R_LIBS_USER }}
34+
key: macOS-r-4.0-1-${{ hashFiles('.github/depends.Rds') }}
35+
restore-keys: macOS-r-4.0-1-
36+
37+
- name: Install dependencies
38+
run: |
39+
install.packages(c("remotes"))
40+
remotes::install_deps(dependencies = TRUE)
41+
remotes::install_cran("covr")
42+
shell: Rscript {0}
43+
44+
- name: Test coverage
45+
run: covr::codecov()
46+
shell: Rscript {0}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ tests/testthat/Rplots.pdf
1010

1111
cran-comments.md
1212
revdep/*
13+
CRAN-RELEASE

.travis.yml

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

DESCRIPTION

Lines changed: 41 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,60 @@
11
Package: bayesplot
22
Type: Package
33
Title: Plotting for Bayesian Models
4-
Version: 1.2.0
5-
Date: 2017-04-11
4+
Version: 1.8.0.9000
5+
Date: 2021-01-07
66
Authors@R: c(person("Jonah", "Gabry", role = c("aut", "cre"), email = "[email protected]"),
7-
person("Paul-Christian", "Buerkner", role = "ctb"))
7+
person("Tristan", "Mahr", role = "aut"),
8+
person("Paul-Christian", "Bürkner", role = "ctb"),
9+
person("Martin", "Modrák", role = "ctb"),
10+
person("Malcolm", "Barrett", role = "ctb"),
11+
person("Frank", "Weber", role = "ctb"),
12+
person("Eduardo", "Coronado Sroka", role = "ctb"),
13+
person("Aki", "Vehtari", role = "ctb"))
814
Maintainer: Jonah Gabry <[email protected]>
9-
Description: Plotting functions for posterior analysis, model checking,
10-
and MCMC diagnostics. The package is designed not only to provide convenient
11-
functionality for users, but also a common set of functions that can be
12-
easily used by developers working on a variety of R packages for Bayesian
13-
modeling, particularly (but not exclusively) packages interfacing with Stan.
15+
Description: Plotting functions for posterior analysis, MCMC diagnostics,
16+
prior and posterior predictive checks, and other visualizations
17+
to support the applied Bayesian workflow advocated in
18+
Gabry, Simpson, Vehtari, Betancourt, and Gelman (2019) <doi:10.1111/rssa.12378>.
19+
The package is designed not only to provide convenient functionality
20+
for users, but also a common set of functions that can be easily used by
21+
developers working on a variety of R packages for Bayesian modeling,
22+
particularly (but not exclusively) packages interfacing with 'Stan'.
1423
License: GPL (>= 3)
1524
LazyData: TRUE
16-
URL: http://mc-stan.org/, https://groups.google.com/forum/#!forum/stan-users
25+
URL: https://mc-stan.org/bayesplot/
1726
BugReports: https://github.com/stan-dev/bayesplot/issues/
27+
SystemRequirements: pandoc (>= 1.12.3), pandoc-citeproc
1828
Depends:
1929
R (>= 3.1.0)
2030
Imports:
21-
dplyr (>= 0.4.3),
22-
ggplot2 (>= 2.2.1),
31+
dplyr (>= 0.8.0),
32+
ggplot2 (>= 3.0.0),
33+
ggridges,
34+
glue,
2335
reshape2,
36+
rlang (>= 0.3.0),
2437
stats,
38+
tibble,
39+
tidyselect,
2540
utils
26-
Suggests:
27-
arm,
41+
Suggests:
42+
ggfortify,
2843
gridExtra (>= 2.2.1),
29-
knitr (>= 1.14),
30-
loo (>= 1.1.0),
44+
hexbin,
45+
knitr (>= 1.16),
46+
loo (>= 2.0.0),
47+
RColorBrewer,
3148
rmarkdown (>= 1.0.0),
32-
rstan (>= 2.14.1),
33-
rstanarm (>= 2.14.1),
34-
rstantools (>= 1.2.0),
49+
rstan (>= 2.17.1),
50+
rstanarm (>= 2.17.4),
51+
rstantools (>= 1.5.0),
3552
scales,
3653
shinystan (>= 2.3.0),
37-
testthat
38-
RoxygenNote: 6.0.1
54+
survival,
55+
testthat (>= 2.0.0),
56+
vdiffr
57+
RoxygenNote: 7.1.1
3958
VignetteBuilder: knitr
59+
Encoding: UTF-8
60+
Roxygen: list(markdown = TRUE)

0 commit comments

Comments
 (0)