From 9e50a3b21f2d160cc57fb706bce8a43f59d2c1f8 Mon Sep 17 00:00:00 2001 From: Jordan Mark Barbone Date: Sat, 14 Oct 2023 23:32:41 -0400 Subject: [PATCH] formatting --- R/crayon.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/crayon.R b/R/crayon.R index 857c821..a816412 100644 --- a/R/crayon.R +++ b/R/crayon.R @@ -1,6 +1,7 @@ use_color <- function() { - requireNamespace("crayon", quietly = TRUE) && crayon::has_color() + requireNamespace("crayon", quietly = TRUE) && + getOption("crayon.enabled", crayon::has_color()) } # add more when used