Skip to content

Commit ddf6abe

Browse files
authored
Fix warnings in examples (#325)
* update authors * language * language * warnings in examples, authorship, version bump, cran comments * remove spelling
1 parent 852cb8e commit ddf6abe

33 files changed

+47
-44
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ revdep/library.noindex
5050
revdep/data.sqlite
5151
/doc/
5252
/Meta/
53+
revdep/

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: report
33
Title: Automated Reporting of Results and Statistical Models
4-
Version: 0.5.5.3
4+
Version: 0.5.5.4
55
Authors@R:
66
c(person(given = "Dominique",
77
family = "Makowski",
@@ -51,7 +51,7 @@ Depends:
5151
R (>= 3.6)
5252
Imports:
5353
bayestestR (>= 0.13.0),
54-
effectsize (>= 0.8.2),
54+
effectsize (> 0.8.2),
5555
insight (>= 0.18.8),
5656
parameters (>= 0.20.0),
5757
performance (>= 0.9.2),

R/cite_easystats.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ cite_easystats <- function(packages = "easystats",
277277
)
278278
),
279279
report = sprintf(
280-
paste("Makowski, D., L\u00fcdecke, D., Ben-Shachar, M. S., Patil, I., & Wiernik, B. M. (2022).",
280+
paste("Makowski, D., L\u00fcdecke, D., Ben-Shachar, M. S., Patil, I.,",
281+
"Wiernik, B. M., & Th\U00E9riault, R. (2022).",
281282
"report: Automated reporting of results and statistical models (%s) [R package].",
282283
"https://CRAN.R-project.org/package=report (Original work published 2021)"),
283284
installed_packages["report"]

R/report.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
#'
8686
#' library(report)
8787
#'
88-
#' model <- t.test(mpg ~ am, data = mtcars)
88+
#' model <- t.test(mtcars$mpg ~ mtcars$am)
8989
#' r <- report(model)
9090
#'
9191
#' # Text

R/report.bayesfactor_models.R

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#'
2424
#' r <- report(BFmodels)
2525
#' r
26-
#' as.data.frame(r)
2726
#'
2827
#' # Bayes factor - inclusion
2928
#' inc_bf <- bayesfactor_inclusion(BFmodels, prior_odds = c(1, 2, 3), match_models = TRUE)

R/report.brmsfit.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#' \dontrun{
1515
#' if (require("brms")) {
1616
#' model <- suppressWarnings(brm(mpg ~ qsec + wt, data = mtcars, refresh = 0, iter = 300))
17-
#' r <- report(model)
17+
#' r <- report(model, verbose = FALSE)
1818
#' r
1919
#' summary(r)
2020
#' as.data.frame(r)

R/report.htest.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#' report(t.test(iris$Sepal.Width, iris$Sepal.Length))
1818
#' report(t.test(iris$Sepal.Width, iris$Sepal.Length, var.equal = TRUE))
1919
#' report(t.test(mtcars$mpg ~ mtcars$vs))
20-
#' report(t.test(mtcars$mpg, mtcars$vs, paired = TRUE))
20+
#' report(t.test(mtcars$mpg, mtcars$vs, paired = TRUE), verbose = FALSE)
2121
#' report(t.test(iris$Sepal.Width, mu = 1))
2222
#'
2323
#' # Correlations

R/report.lavaan.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
#' # summary(as.data.frame(r))
2626
#'
2727
#' # Specific reports
28-
#' report_table(model)
29-
#' report_performance(model)
28+
#' suppressWarnings(report_table(model))
29+
#' suppressWarnings(report_performance(model))
3030
#' }
3131
#' }
3232
#' @return An object of class [report()].

R/report.stanreg.R

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#' r
1818
#' summary(r)
1919
#' as.data.frame(r)
20-
#' summary(as.data.frame(r))
2120
#' }
2221
#' }
2322
#' @return An object of class [report()].

R/report_effectsize.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#'
3232
#' # Bayesian models
3333
#' if (require("rstanarm")) {
34-
#' model <- stan_glm(Sepal.Length ~ Species, data = iris, refresh = 0, iter = 600)
34+
#' model <- suppressWarnings(stan_glm(Sepal.Length ~ Species, data = iris, refresh = 0, iter = 600))
3535
#' report_effectsize(model, effectsize_method = "basic")
3636
#' }
3737
#' }

R/report_info.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#'
3333
#' # Bayesian models
3434
#' if (require("rstanarm")) {
35-
#' model <- stan_glm(Sepal.Length ~ Species, data = iris, refresh = 0, iter = 300)
35+
#' model <- suppressWarnings(stan_glm(Sepal.Length ~ Species, data = iris, refresh = 0, iter = 300))
3636
#' report_info(model)
3737
#' }
3838
#' }

R/report_performance.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#' dem60 =~ y1 + y2 + y3
4040
#' dem60 ~ ind60 "
4141
#' model <- lavaan::sem(structure, data = PoliticalDemocracy)
42-
#' report_performance(model)
42+
#' suppressWarnings(report_performance(model))
4343
#' }
4444
#' }
4545
#' @export

R/report_random.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@
2323
#' \donttest{
2424
#' # Bayesian models
2525
#' if (require("rstanarm")) {
26-
#' model <- stan_lmer(mpg ~ disp + (1 | cyl), data = mtcars, refresh = 0, iter = 1000)
26+
#' model <- suppressWarnings(stan_lmer(
27+
#' mpg ~ disp + (1 | cyl), data = mtcars, refresh = 0, iter = 1000))
2728
#' r <- report_random(model)
2829
#' r
2930
#' summary(r)
3031
#' }
3132
#' }
3233
#' \dontrun{
3334
#' if (require("brms")) {
34-
#' model <- brm(mpg ~ disp + (1 | cyl), data = mtcars, refresh = 0, iter = 1000)
35+
#' model <- suppressWarnings(brm(mpg ~ disp + (1 | cyl), data = mtcars, refresh = 0, iter = 1000))
3536
#' r <- report_random(model)
3637
#' r
3738
#' summary(r)

R/report_table.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#' report_table(iris)
2424
#'
2525
#' # h-tests
26-
#' report_table(t.test(mpg ~ am, data = mtcars))
26+
#' report_table(t.test(mtcars$mpg ~ mtcars$am))
2727
#'
2828
#' # ANOVAs
2929
#' report_table(aov(Sepal.Length ~ Species, data = iris))
@@ -50,7 +50,7 @@
5050
#' dem60 =~ y1 + y2 + y3
5151
#' dem60 ~ ind60 "
5252
#' model <- lavaan::sem(structure, data = PoliticalDemocracy)
53-
#' report_table(model)
53+
#' suppressWarnings(report_table(model))
5454
#' }
5555
#' }
5656
#' @export

cran-comments.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
## R CMD check results
1+
## R CMD check results report 0.5.6
22

3-
0 errors | 0 warnings | 0 note
3+
0 errors | 0 warnings | 1 note
44

5-
* Fixes failing tests in CRAN checks.
5+
* Change of maintainer from Dominique Makowski to Rémi Thériault.

inst/CITATION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
bibentry(bibtype = "Article",
22
title = "Automated Results Reporting as a Practical Tool to Improve Reproducibility and Methodological Best Practices Adoption",
3-
author=c(person("Dominique", "Makowski"), person("Mattan S.", "Ben-Shachar"), person("Indrajeet", "Patil"), person("Daniel", "Lüdecke")),
3+
author=c(person("Dominique", "Makowski"), person("Mattan S.", "Ben-Shachar"), person("Indrajeet", "Patil"), person("Daniel", "Lüdecke"), person("Rémi", "Thériault")),
44
year = 2021,
55
journal = "CRAN",
66
url = "https://github.com/easystats/report",
7-
textVersion = paste("Makowski, D., Ben-Shachar, M.S., Patil, I. & Lüdecke, D. (2020). Automated Results Reporting as a Practical Tool to Improve Reproducibility and Methodological Best Practices Adoption. CRAN.", "Available from https://github.com/easystats/report.", "doi: .", sep=" "),
7+
textVersion = paste("Makowski, D., Ben-Shachar, M.S., Patil, I., Lüdecke, D., & Thériault, R. (2020). Automated Results Reporting as a Practical Tool to Improve Reproducibility and Methodological Best Practices Adoption. CRAN.", "Available from https://github.com/easystats/report.", "doi: .", sep=" "),
88
mheader = "To cite in publications use:")

inst/easystats_bib.bib

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ @software{performancePackage
201201
@software{reportPackage,
202202
title = {{{report}}: Automated Reporting of Results and Statistical Models},
203203
shorttitle = {{{report}}},
204-
author = {Makowski, Dominique and L\"udecke, Daniel and Ben-Shachar, Mattan S. and Patil, Indrajeet and Wiernik, Brenton M.},
204+
author = {Makowski, Dominique and L\"udecke, Daniel and Ben-Shachar, Mattan S. and Patil, Indrajeet and Wiernik, Brenton M. and Thériault, Rémi},
205205
date = {2022-02-22},
206206
origdate = {2021-04-15},
207207
url = {https://CRAN.R-project.org/package=report},

inst/easystats_bib.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,8 @@ references:
569569
given: Indrajeet
570570
- family: Wiernik
571571
given: Brenton M.
572+
- family: Thériault
573+
given: Rémi
572574
citation-key: reportPackage
573575
genre: R package
574576
issued:

man/report-package.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/report.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/report.bayesfactor_models.Rd

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/report.brmsfit.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/report.htest.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/report.lavaan.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/report.stanreg.Rd

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/report_effectsize.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/report_info.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/report_performance.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/report_random.Rd

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/report_table.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

old/report.modelbased.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ report.estimate_means <- report.estimate_contrasts
8686
#' \dontrun{
8787
#' library(rstanarm)
8888
#' model <- stan_glm(Sepal.Width ~ Species * Petal.Width, data = iris)
89-
#' report(estimate_slopes(model))
89+
#' suppressWarnings(report(estimate_slopes(model)))
9090
#' }
9191
#' @rdname report.estimate_contrasts
9292
#' @export

tests/testthat/_snaps/windows/report.brmsfit.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
of 300 iterations and a warmup of 150) to predict mpg with qsec and wt
1010
(formula: mpg ~ qsec + wt). Priors over parameters were set as student_t
1111
(location = 19.20, scale = 5.40) distributions. The model's explanatory power
12-
is substantial (R2 = 0.82, 95% CI [0.75, 0.85], adj. R2 = 0.79). Within this
12+
is substantial (R2 = 0.82, 95% CI [0.75, 0.85], adj. R2 = 0.78). Within this
1313
model:
1414
1515
- The effect of b Intercept (Median = 19.74, 95% CI [9.45, 32.02]) has a 99.83%
@@ -38,7 +38,7 @@
3838
chains of 300 iterations and a warmup of 150) to predict mpg with qsec and wt
3939
(formula: mpg ~ qsec + wt). Priors over parameters were set as uniform
4040
(location = , scale = ) distributions. The model's explanatory power is
41-
substantial (R2 = 0.82, 95% CI [0.75, 0.85], adj. R2 = 0.79). Within this
41+
substantial (R2 = 0.82, 95% CI [0.75, 0.85], adj. R2 = 0.78). Within this
4242
model:
4343
4444
- The effect of b Intercept (Median = 19.74, 95% CI [9.45, 32.02]) has a 99.83%
@@ -67,7 +67,7 @@
6767
chains of 300 iterations and a warmup of 150) to predict mpg with qsec and wt
6868
(formula: mpg ~ qsec + wt). Priors over parameters were set as uniform
6969
(location = , scale = ) distributions. The model's explanatory power is
70-
substantial (R2 = 0.82, 95% CI [0.75, 0.85], adj. R2 = 0.79). Within this
70+
substantial (R2 = 0.82, 95% CI [0.75, 0.85], adj. R2 = 0.78). Within this
7171
model:
7272
7373
- The effect of b Intercept (Median = 19.74, 95% CI [9.45, 32.02]) has a 99.83%
@@ -96,7 +96,7 @@
9696
chains of 300 iterations and a warmup of 150) to predict mpg with qsec and wt
9797
(formula: mpg ~ qsec + wt). Priors over parameters were set as student_t
9898
(location = 0.00, scale = 5.40) distributions. The model's explanatory power is
99-
substantial (R2 = 0.82, 95% CI [0.75, 0.85], adj. R2 = 0.79). Within this
99+
substantial (R2 = 0.82, 95% CI [0.75, 0.85], adj. R2 = 0.78). Within this
100100
model:
101101
102102
- The effect of b Intercept (Median = 19.74, 95% CI [9.45, 32.02]) has a 99.83%

tests/testthat/test-report.brmsfit.R

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ if (requiet("brms")) {
44
# so worth checking only locally
55
skip_on_ci()
66

7+
set.seed(333)
78
model <- suppressWarnings(brm(mpg ~ qsec + wt, data = mtcars, refresh = 0, iter = 300, seed = 333))
89
r <- report(model, verbose = FALSE)
910

0 commit comments

Comments
 (0)