(v2.1.1.9137) examples fix

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2025-01-31 16:28:06 +01:00
1 parent 22afd918e6
commit ecc4e25e75
9 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -1173,7 +1173,7 @@ has_colour <- function() {
# disable on emacs, which only supports 8 colours
return(FALSE)
}
has_color <- import_fn("has_color", "crayon")
has_color <- import_fn("has_color", "crayon", error_on_fail = FALSE)
!is.null(has_color) && isTRUE(has_color())
}