diff --git a/R/utils.R b/R/utils.R index 49d46e284..9f3f74c60 100644 --- a/R/utils.R +++ b/R/utils.R @@ -162,7 +162,7 @@ on_load({ }) style_dim_soft <- function(x) { - if (cli::num_ansi_colors() >= 256) { + if (cli::num_ansi_colors() >= 256 && is_installed("crayon")) { crayon::make_style(grDevices::grey(0.6), colors = 256)(x) } else { col_silver(x)