From d4570c47dd40f880e4af5b9b1619e1036952320b Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 11 Jul 2024 11:22:38 +0200 Subject: [PATCH] typo --- R/plot.check_heteroscedasticity.R | 2 +- R/plots.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/plot.check_heteroscedasticity.R b/R/plot.check_heteroscedasticity.R index 6809f114d..e982cac3e 100644 --- a/R/plot.check_heteroscedasticity.R +++ b/R/plot.check_heteroscedasticity.R @@ -48,7 +48,7 @@ plot.see_check_heteroscedasticity <- function(x, }, error = function(e) { # debugging - if (getOption("easystats_erros", FALSE)) { + if (getOption("easystats_errors", FALSE)) { insight::format_error(e$message) } NULL diff --git a/R/plots.R b/R/plots.R index 2b6df522f..5f60a874a 100644 --- a/R/plots.R +++ b/R/plots.R @@ -100,7 +100,7 @@ plots <- function(..., .safe_print_plots <- function(pw, ...) { pw_drawn <- tryCatch(print(pw), error = function(e) e) # for debugging, return original error - if (getOption("easystats_erros", FALSE)) { + if (getOption("easystats_errors", FALSE)) { insight::format_error(pw_drawn$message) } if (inherits(pw_drawn, "simpleError")) {