Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.0 #765

Merged
merged 9 commits into from
May 19, 2024
Merged

2.1.0 #765

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Description: Create beautiful and customizable tables to summarize several
RTF, JPG, or PNG. Tables can easily be embedded in 'Rmarkdown' or 'knitr'
dynamic documents. Details can be found in Arel-Bundock (2022)
<doi:10.18637/jss.v103.i01>.
Version: 2.0.0.13
Version: 2.1.0
Authors@R: c(person("Vincent", "Arel-Bundock",
email = "[email protected]",
role = c("aut", "cre"),
Expand Down Expand Up @@ -45,18 +45,17 @@ Authors@R: c(person("Vincent", "Arel-Bundock",
comment = c(ORCID = "0000-0003-2121-5177")))
URL: https://modelsummary.com
BugReports: https://github.com/vincentarelbundock/modelsummary/issues/
Remotes: vincentarelbundock/tinytable
Depends:
R (>= 4.0.0)
Imports:
checkmate (>= 2.3.1),
data.table (>= 1.15.2),
generics,
glue,
insight (>= 0.19.9),
insight (>= 0.19.11),
methods,
parameters (>= 0.21.6),
performance (>= 0.10.9),
parameters (>= 0.21.7),
performance (>= 0.11.0),
tables (>= 0.9.17),
tinytable (>= 0.3.0)
Suggests:
Expand Down
9 changes: 3 additions & 6 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# News

## Development
## 2.1.0

New features:
New:

* `modelsummary()` gets a `gof_function` argument which accepts functions to extract custom information from models.
* `flextable`: Support spanning column headers
* `datasummary_correlation()` gets a `star` argument.
* `datasummary_correlation()` accepts objects produced by the `correlation` package.
* `datasummary_balance()`: `formula` can now include variables on the left-hand side to indicate the subset of columns to summarize: `datasummary_balance(mpg + hp ~ am, data = mtcars)` Thanks to @etiennebacher for feature request #751.

Minor:

* Unnecessary text printed to screen on some F stat computations is now suppressed.
* Unnecessary text printed to screen on some F sta computations is now suppressed.
* Update to `tinytable` 0.3.0

Bugs:
Expand Down
1 change: 1 addition & 0 deletions R/datasummary_correlation.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#' * https://modelsummary.com/articles/datasummary.html
#'
#' @inheritParams datasummary
#' @inheritParams modelsummary
#' @param method character or function
#' \itemize{
#' \item character: "pearson", "kendall", "spearman", or "pearspear"
Expand Down
1 change: 1 addition & 0 deletions R/methods_stats.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ glance_custom_internal.lm <- function(x, vcov_type = NULL, gof = NULL, ...) {
if (inherits(gof, "data.frame") && "statistic" %in% colnames(gof)) {
out[["F"]] <- gof$statistic
} else {
fstat <- NULL
if (isTRUE(check_dependency("lmtest"))) {
void <- utils::capture.output(fstat <- try(lmtest::waldtest(x, vcov = stats::vcov)$F[2], silent = TRUE))
}
Expand Down
6 changes: 2 additions & 4 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
"Revert to `kableExtra` for one session:",
"",
" options(modelsummary_factory_default = 'kableExtra')",
"",
"Change the default backend persistently:",
"",
" config_modelsummary(factory_default = 'gt')",
" options(modelsummary_factory_latex = 'kableExtra')",
" options(modelsummary_factory_html = 'kableExtra')",
"",
"Silence this message forever:",
"",
Expand Down
8 changes: 8 additions & 0 deletions man/datasummary_correlation.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions man/datasummary_correlation_format.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading