From 2cac6ee730010c4a862d31835d51b4a2675761ee Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 18 Sep 2023 23:44:51 +0200 Subject: [PATCH] pass down args --- DESCRIPTION | 2 +- NEWS.md | 3 +++ R/print_md.R | 9 +++++++-- man/reexports.Rd | 4 ++-- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index cdca7f002..39187f723 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: parameters Title: Processing of Model Parameters -Version: 0.21.2.1 +Version: 0.21.2.2 Authors@R: c(person(given = "Daniel", family = "Lüdecke", diff --git a/NEWS.md b/NEWS.md index d8bcfe9f6..b0e8be334 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,6 +5,9 @@ * `principal_components()` and `factor_analysis()` now also work when argument `n = 1`. +* `print_md()` for `compare_parameters()` now gains more arguments, similar to + the `print()` method. + # parameters 0.21.2 ## Changes diff --git a/R/print_md.R b/R/print_md.R index 9464a97e9..7d2237d3b 100644 --- a/R/print_md.R +++ b/R/print_md.R @@ -133,6 +133,9 @@ print_md.compare_parameters <- function(x, footer = NULL, select = NULL, split_components = TRUE, + ci_brackets = c("(", ")"), + zap_small = FALSE, + groups = NULL, ...) { # check if user supplied digits attributes if (missing(digits)) { @@ -158,8 +161,10 @@ print_md.compare_parameters <- function(x, ci_digits = ci_digits, p_digits = p_digits, ci_width = NULL, - ci_brackets = c("(", ")"), - format = "markdown" + ci_brackets = ci_brackets, + format = "markdown", + zap_small = zap_small, + groups = groups ) insight::export_table( diff --git a/man/reexports.Rd b/man/reexports.Rd index 362b172f6..0dc0aba66 100644 --- a/man/reexports.Rd +++ b/man/reexports.Rd @@ -1,16 +1,16 @@ % Generated by roxygen2: do not edit by hand % Please edit documentation in R/equivalence_test.R, R/methods_bayestestR.R, -% R/n_parameters.R, R/print_md.R, R/reexports.R +% R/n_parameters.R, R/reexports.R \docType{import} \name{reexports} \alias{reexports} \alias{equivalence_test} \alias{ci} \alias{n_parameters} -\alias{print_md} \alias{standardize_names} \alias{supported_models} \alias{print_html} +\alias{print_md} \alias{display} \alias{describe_distribution} \alias{demean}