From 28d92a84304bddea8aa87768eb3a9385953d3b3d Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 4 Nov 2024 09:07:56 +0100 Subject: [PATCH] typo, lintr --- R/1_model_parameters.R | 2 +- R/methods_lme4.R | 2 +- man/model_parameters.averaging.Rd | 2 +- man/model_parameters.cgam.Rd | 2 +- man/model_parameters.default.Rd | 2 +- man/model_parameters.glht.Rd | 2 +- man/model_parameters.htest.Rd | 2 +- man/model_parameters.merMod.Rd | 2 +- man/model_parameters.mlm.Rd | 2 +- man/model_parameters.rma.Rd | 2 +- man/model_parameters.zcpglm.Rd | 2 +- man/n_clusters.Rd | 2 +- tests/testthat/test-printing.R | 14 ++++++-------- 13 files changed, 18 insertions(+), 20 deletions(-) diff --git a/R/1_model_parameters.R b/R/1_model_parameters.R index 13c6e67cd..769656f54 100644 --- a/R/1_model_parameters.R +++ b/R/1_model_parameters.R @@ -504,7 +504,7 @@ parameters <- model_parameters #' - If `s_value = TRUE`, the p-value will be replaced by the S-value in the #' output (cf. _Rafi and Greenland 2020_). #' - `pd` adds an additional column with the _probability of direction_ (see -#' [`bayestestR::p_direction()`] for details). urthermore, see 'Examples' for +#' [`bayestestR::p_direction()`] for details). Furthermore, see 'Examples' for #' this function. #' - For developers, whose interest mainly is to get a "tidy" data frame of #' model summaries, it is recommended to set `pretty_names = FALSE` to speed diff --git a/R/methods_lme4.R b/R/methods_lme4.R index 7e282a20d..653bde9a5 100644 --- a/R/methods_lme4.R +++ b/R/methods_lme4.R @@ -45,7 +45,7 @@ #' - If `s_value = TRUE`, the p-value will be replaced by the S-value in the #' output (cf. _Rafi and Greenland 2020_). #' - `pd` adds an additional column with the _probability of direction_ (see -#' [`bayestestR::p_direction()`] for details). urthermore, see 'Examples' for +#' [`bayestestR::p_direction()`] for details). Furthermore, see 'Examples' for #' this function. #' - For developers, whose interest mainly is to get a "tidy" data frame of #' model summaries, it is recommended to set `pretty_names = FALSE` to speed diff --git a/man/model_parameters.averaging.Rd b/man/model_parameters.averaging.Rd index 8f3ab7f94..fa91a77ee 100644 --- a/man/model_parameters.averaging.Rd +++ b/man/model_parameters.averaging.Rd @@ -298,7 +298,7 @@ arguments will be passed to the print-method, or can directly be used in \item If \code{s_value = TRUE}, the p-value will be replaced by the S-value in the output (cf. \emph{Rafi and Greenland 2020}). \item \code{pd} adds an additional column with the \emph{probability of direction} (see -\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). urthermore, see 'Examples' for +\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). Furthermore, see 'Examples' for this function. \item For developers, whose interest mainly is to get a "tidy" data frame of model summaries, it is recommended to set \code{pretty_names = FALSE} to speed diff --git a/man/model_parameters.cgam.Rd b/man/model_parameters.cgam.Rd index 91b385eb8..e04cbeb3a 100644 --- a/man/model_parameters.cgam.Rd +++ b/man/model_parameters.cgam.Rd @@ -152,7 +152,7 @@ arguments will be passed to the print-method, or can directly be used in \item If \code{s_value = TRUE}, the p-value will be replaced by the S-value in the output (cf. \emph{Rafi and Greenland 2020}). \item \code{pd} adds an additional column with the \emph{probability of direction} (see -\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). urthermore, see 'Examples' for +\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). Furthermore, see 'Examples' for this function. \item For developers, whose interest mainly is to get a "tidy" data frame of model summaries, it is recommended to set \code{pretty_names = FALSE} to speed diff --git a/man/model_parameters.default.Rd b/man/model_parameters.default.Rd index a291af51e..e377fe27c 100644 --- a/man/model_parameters.default.Rd +++ b/man/model_parameters.default.Rd @@ -197,7 +197,7 @@ arguments will be passed to the print-method, or can directly be used in \item If \code{s_value = TRUE}, the p-value will be replaced by the S-value in the output (cf. \emph{Rafi and Greenland 2020}). \item \code{pd} adds an additional column with the \emph{probability of direction} (see -\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). urthermore, see 'Examples' for +\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). Furthermore, see 'Examples' for this function. \item For developers, whose interest mainly is to get a "tidy" data frame of model summaries, it is recommended to set \code{pretty_names = FALSE} to speed diff --git a/man/model_parameters.glht.Rd b/man/model_parameters.glht.Rd index ea52fa1a8..55ded27eb 100644 --- a/man/model_parameters.glht.Rd +++ b/man/model_parameters.glht.Rd @@ -70,7 +70,7 @@ arguments will be passed to the print-method, or can directly be used in \item If \code{s_value = TRUE}, the p-value will be replaced by the S-value in the output (cf. \emph{Rafi and Greenland 2020}). \item \code{pd} adds an additional column with the \emph{probability of direction} (see -\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). urthermore, see 'Examples' for +\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). Furthermore, see 'Examples' for this function. \item For developers, whose interest mainly is to get a "tidy" data frame of model summaries, it is recommended to set \code{pretty_names = FALSE} to speed diff --git a/man/model_parameters.htest.Rd b/man/model_parameters.htest.Rd index 2bc8ffd18..5254ca2ad 100644 --- a/man/model_parameters.htest.Rd +++ b/man/model_parameters.htest.Rd @@ -58,7 +58,7 @@ arguments will be passed to the print-method, or can directly be used in \item If \code{s_value = TRUE}, the p-value will be replaced by the S-value in the output (cf. \emph{Rafi and Greenland 2020}). \item \code{pd} adds an additional column with the \emph{probability of direction} (see -\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). urthermore, see 'Examples' for +\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). Furthermore, see 'Examples' for this function. \item For developers, whose interest mainly is to get a "tidy" data frame of model summaries, it is recommended to set \code{pretty_names = FALSE} to speed diff --git a/man/model_parameters.merMod.Rd b/man/model_parameters.merMod.Rd index 8ca2889ca..5f34e5714 100644 --- a/man/model_parameters.merMod.Rd +++ b/man/model_parameters.merMod.Rd @@ -307,7 +307,7 @@ arguments will be passed to the print-method, or can directly be used in \item If \code{s_value = TRUE}, the p-value will be replaced by the S-value in the output (cf. \emph{Rafi and Greenland 2020}). \item \code{pd} adds an additional column with the \emph{probability of direction} (see -\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). urthermore, see 'Examples' for +\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). Furthermore, see 'Examples' for this function. \item For developers, whose interest mainly is to get a "tidy" data frame of model summaries, it is recommended to set \code{pretty_names = FALSE} to speed diff --git a/man/model_parameters.mlm.Rd b/man/model_parameters.mlm.Rd index 637f81f70..ccc605b36 100644 --- a/man/model_parameters.mlm.Rd +++ b/man/model_parameters.mlm.Rd @@ -166,7 +166,7 @@ arguments will be passed to the print-method, or can directly be used in \item If \code{s_value = TRUE}, the p-value will be replaced by the S-value in the output (cf. \emph{Rafi and Greenland 2020}). \item \code{pd} adds an additional column with the \emph{probability of direction} (see -\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). urthermore, see 'Examples' for +\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). Furthermore, see 'Examples' for this function. \item For developers, whose interest mainly is to get a "tidy" data frame of model summaries, it is recommended to set \code{pretty_names = FALSE} to speed diff --git a/man/model_parameters.rma.Rd b/man/model_parameters.rma.Rd index e552f53d1..39d3d96dd 100644 --- a/man/model_parameters.rma.Rd +++ b/man/model_parameters.rma.Rd @@ -100,7 +100,7 @@ arguments will be passed to the print-method, or can directly be used in \item If \code{s_value = TRUE}, the p-value will be replaced by the S-value in the output (cf. \emph{Rafi and Greenland 2020}). \item \code{pd} adds an additional column with the \emph{probability of direction} (see -\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). urthermore, see 'Examples' for +\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). Furthermore, see 'Examples' for this function. \item For developers, whose interest mainly is to get a "tidy" data frame of model summaries, it is recommended to set \code{pretty_names = FALSE} to speed diff --git a/man/model_parameters.zcpglm.Rd b/man/model_parameters.zcpglm.Rd index e7f4965a6..4ed13d492 100644 --- a/man/model_parameters.zcpglm.Rd +++ b/man/model_parameters.zcpglm.Rd @@ -132,7 +132,7 @@ arguments will be passed to the print-method, or can directly be used in \item If \code{s_value = TRUE}, the p-value will be replaced by the S-value in the output (cf. \emph{Rafi and Greenland 2020}). \item \code{pd} adds an additional column with the \emph{probability of direction} (see -\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). urthermore, see 'Examples' for +\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). Furthermore, see 'Examples' for this function. \item For developers, whose interest mainly is to get a "tidy" data frame of model summaries, it is recommended to set \code{pretty_names = FALSE} to speed diff --git a/man/n_clusters.Rd b/man/n_clusters.Rd index 0a7f1561e..8a55f3a01 100644 --- a/man/n_clusters.Rd +++ b/man/n_clusters.Rd @@ -106,7 +106,7 @@ arguments will be passed to the print-method, or can directly be used in \item If \code{s_value = TRUE}, the p-value will be replaced by the S-value in the output (cf. \emph{Rafi and Greenland 2020}). \item \code{pd} adds an additional column with the \emph{probability of direction} (see -\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). urthermore, see 'Examples' for +\code{\link[bayestestR:p_direction]{bayestestR::p_direction()}} for details). Furthermore, see 'Examples' for this function. \item For developers, whose interest mainly is to get a "tidy" data frame of model summaries, it is recommended to set \code{pretty_names = FALSE} to speed diff --git a/tests/testthat/test-printing.R b/tests/testthat/test-printing.R index eff31d83c..0c99e10fb 100644 --- a/tests/testthat/test-printing.R +++ b/tests/testthat/test-printing.R @@ -111,12 +111,10 @@ withr::with_options( withr::with_options( list(parameters_warning_exponentiate = TRUE), - { - test_that("message about interpretation of log-resoponse", { - data(mtcars) - m <- lm(log(mpg) ~ gear, data = mtcars) - out <- model_parameters(m, exponentiate = TRUE) - expect_snapshot(print(out)) - }) - } + test_that("message about interpretation of log-resoponse", { + data(mtcars) + m <- lm(log(mpg) ~ gear, data = mtcars) + out <- model_parameters(m, exponentiate = TRUE) + expect_snapshot(print(out)) + }) )