Skip to content

Commit 035da1e

Browse files
strengejackeIndrajeetPatilDominiqueMakowski
authored
CRAN submission RC 0.13.1 (#593)
* CRAN submission RC 0.13.1 * lintr * revdep-results * bump datawizard as well * skip on lin/mac, increase tolerance * update wordlist * bump see * add tolerance for emmGrid tests * check for internet access cf. easystats/easystats#362 * Remove unnecessary re-export easystats/easystats#292 * format_error * fix lintr * renamed * rename back, dev version now * skip on cran * run tests in parallel * shorten example to avoid yet another note * Update bayesfactor_restricted.Rd --------- Co-authored-by: Indrajeet Patil <patilindrajeet.science@gmail.com> Co-authored-by: Dominique Makowski <dom.mak19@gmail.com>
1 parent db2548d commit 035da1e

20 files changed

Lines changed: 165 additions & 101 deletions

.lintr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ linters: linters_with_defaults(
1212
object_usage_linter = NULL,
1313
todo_comment_linter = NULL,
1414
undesirable_function_linter(c("mapply" = NA, "sapply" = NA, "setwd" = NA)),
15-
undesirable_operator_linter = NULL,
1615
unnecessary_concatenation_linter(allow_single_expression = FALSE),
16+
undesirable_operator_linter = NULL,
1717
defaults = linters_with_tags(tags = NULL)
1818
)

DESCRIPTION

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: bayestestR
33
Title: Understand and Describe Bayesian Models and Posterior Distributions
4-
Version: 0.13.0.10
4+
Version: 0.13.1
55
Authors@R:
66
c(person(given = "Dominique",
77
family = "Makowski",
@@ -67,7 +67,7 @@ Depends:
6767
R (>= 3.6)
6868
Imports:
6969
insight (>= 0.19.1),
70-
datawizard (>= 0.6.5),
70+
datawizard (>= 0.7.0),
7171
graphics,
7272
methods,
7373
stats,
@@ -80,6 +80,7 @@ Suggests:
8080
blavaan,
8181
bridgesampling,
8282
brms,
83+
curl,
8384
effectsize,
8485
emmeans,
8586
gamm4,
@@ -105,7 +106,7 @@ Suggests:
105106
rmarkdown,
106107
rstan,
107108
rstanarm,
108-
see (>= 0.7.4),
109+
see (>= 0.7.5),
109110
testthat,
110111
tweedie
111112
License: GPL-3
@@ -118,6 +119,8 @@ Language: en-US
118119
RoxygenNote: 7.2.3.9000
119120
Roxygen: list(markdown = TRUE)
120121
Config/testthat/edition: 3
122+
Config/testthat/parallel: true
123+
Config/rcmdcheck/ignore-inconsequential-notes: true
121124
Config/Needs/website:
122125
rstudio/bslib,
123126
r-lib/pkgdown,

NAMESPACE

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,6 @@ export(pd_to_p)
622622
export(point_estimate)
623623
export(print_html)
624624
export(print_md)
625-
export(reshape_ci)
626625
export(reshape_draws)
627626
export(reshape_iterations)
628627
export(rnorm_perfect)
@@ -640,6 +639,5 @@ export(simulate_ttest)
640639
export(spi)
641640
export(unupdate)
642641
export(weighted_posteriors)
643-
importFrom(datawizard,reshape_ci)
644642
importFrom(insight,print_html)
645643
importFrom(insight,print_md)

R/bayesfactor_restricted.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
#' set.seed(444)
3434
#' library(bayestestR)
3535
#' prior <- data.frame(
36-
#' A = rnorm(1000),
37-
#' B = rnorm(1000),
38-
#' C = rnorm(1000)
36+
#' A = rnorm(500),
37+
#' B = rnorm(500),
38+
#' C = rnorm(500)
3939
#' )
4040
#'
4141
#' posterior <- data.frame(
42-
#' A = rnorm(1000, .4, 0.7),
43-
#' B = rnorm(1000, -.2, 0.4),
44-
#' C = rnorm(1000, 0, 0.5)
42+
#' A = rnorm(500, .4, 0.7),
43+
#' B = rnorm(500, -.2, 0.4),
44+
#' C = rnorm(500, 0, 0.5)
4545
#' )
4646
#'
4747
#' hyps <- c(

R/mediation.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ print.bayestestR_mediation <- function(x, digits = 3, ...) {
345345
cat(insight::export_table(x, digits = digits))
346346
cat("\n")
347347

348-
prop_mediated[] <- lapply(prop_mediated, function(i) insight::format_value(i, as_percent = TRUE))
348+
prop_mediated[] <- lapply(prop_mediated, insight::format_value, as_percent = TRUE)
349349
insight::print_color(
350350
sprintf(
351351
"Proportion mediated: %s [%s, %s]\n",

R/p_to_bf.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ p_to_bf.numeric <- function(x, log = FALSE, n_obs = NULL, ...) {
6060
p <- x
6161
# Validate n_obs
6262
if (is.null(n_obs)) {
63-
stop("Argument `n_obs` must be specified.", call. = FALSE)
63+
insight::format_error("Argument `n_obs` must be specified.")
6464
} else if (length(n_obs) == 1L) {
6565
n_obs <- rep(n_obs, times = length(p))
6666
} else if (length(n_obs) != length(p)) {
67-
stop("`n_obs` must be of length 1 or same length as `p`.", call. = FALSE)
67+
insight::format_error("`n_obs` must be of length 1 or same length as `p`.")
6868
}
6969

7070
# Convert
@@ -112,7 +112,7 @@ p_to_bf.default <- function(x, log = FALSE, ...) {
112112
n_obs <- list(...)$n_obs
113113
}
114114
} else {
115-
stop("Argument `x` must be a model object, or a numeric vector of p-values.", call. = FALSE)
115+
insight::format_error("Argument `x` must be a model object, or a numeric vector of p-values.")
116116
}
117117

118118
out <- p_to_bf(p, n_obs = n_obs, log = log)

R/reexports.R

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

README.Rmd

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ describe_posterior(
145145
centrality = "all"
146146
)
147147
```
148-
```{r message=FALSE, warning=FALSE,echo=FALSE}
148+
149+
```{r message=FALSE, warning=FALSE, echo=FALSE, eval=curl::has_internet()}
149150
model <- insight::download_model("brms_zi_3")
150151
describe_posterior(
151152
model,
@@ -158,10 +159,7 @@ describe_posterior(
158159
```
159160

160161

161-
*bayestestR* also includes [**many other features**](https://easystats.github.io/bayestestR/reference/index.html) useful for your Bayesian analsyes. Here are some more examples:
162-
163-
164-
162+
*bayestestR* also includes [**many other features**](https://easystats.github.io/bayestestR/reference/index.html) useful for your Bayesian analyses. Here are some more examples:
165163

166164
## Point-estimates
167165

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ describe_posterior(
159159
)
160160
## Summary of Posterior Distribution
161161
##
162-
## Parameter | Median | 95% CI | pd | ps
163-
## -----------------------------------------------------
164-
## Posterior | -8.68e-03 | [-1.96, 1.92] | 50.35% | 0.46
162+
## Parameter | Median | 95% CI | pd | ps
163+
## --------------------------------------------------
164+
## Posterior | 0.01 | [-1.97, 1.99] | 50.58% | 0.47
165165
```
166166

167167
`describe_posterior()` works for many objects, including more complex
@@ -239,7 +239,7 @@ describe_posterior(
239239

240240
*bayestestR* also includes [**many other
241241
features**](https://easystats.github.io/bayestestR/reference/index.html)
242-
useful for your Bayesian analsyes. Here are some more examples:
242+
useful for your Bayesian analyses. Here are some more examples:
243243

244244
## Point-estimates
245245

cran-comments.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1-
## Test environments
2-
3-
* local Windows install, R 4.1.2
4-
5-
* ubuntu 18.04 (on gitub-actions-ci), R 4.1.2
6-
7-
* win-builder (devel and release)
8-
9-
## R CMD check results
10-
11-
0 errors | 0 warnings | 0 note
12-
13-
141
## revdepcheck results
152

16-
We checked 18 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
3+
We checked 22 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
174

185
* We saw 0 new problems
19-
* We failed to check 0 packages
6+
* We failed to check 1 packages
7+
8+
Issues with CRAN packages are summarised below.
9+
10+
### Failed to check
2011

12+
* snSMART (NA)
13+
Reason: JAGS was not installed.

0 commit comments

Comments
 (0)