From 9b487241646fdd475101ba3cfd6d548a8f2741e4 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 22 Sep 2023 10:07:10 +0200 Subject: [PATCH] fix examples --- R/display.R | 2 +- man/display.parameters_model.Rd | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/R/display.R b/R/display.R index 2aceb525f..51f26d532 100644 --- a/R/display.R +++ b/R/display.R @@ -45,7 +45,7 @@ #' #' @seealso [print.parameters_model()] #' -#' @examples +#' @examplesIf require("gt", quietly = TRUE) #' model <- lm(mpg ~ wt + cyl, data = mtcars) #' mp <- model_parameters(model) #' display(mp) diff --git a/man/display.parameters_model.Rd b/man/display.parameters_model.Rd index 469bd47ea..28f44ad50 100644 --- a/man/display.parameters_model.Rd +++ b/man/display.parameters_model.Rd @@ -292,6 +292,7 @@ knitted from rmarkdown to PDF or Word files. See for examples. } \examples{ +\dontshow{if (require("gt", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} model <- lm(mpg ~ wt + cyl, data = mtcars) mp <- model_parameters(model) display(mp) @@ -316,6 +317,7 @@ print_html( column_labels = c("Est. (95\% CI)") ) } +\dontshow{\}) # examplesIf} } \seealso{ \code{\link[=print.parameters_model]{print.parameters_model()}}