Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/rlang/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bool r_is_installed(const char* pkg) {
static r_obj* has_colour_call = NULL;

bool r_has_colour(void) {
if (!r_is_installed("crayon")) {
if (!r_is_installed("cli")) {
return false;
}

Expand All @@ -26,7 +26,7 @@ void r_init_library_session(void) {
is_installed_call = r_parse("requireNamespace(x, quietly = TRUE)");
r_preserve(is_installed_call);

has_colour_call = r_parse("crayon::has_color()");
has_colour_call = r_parse("cli::num_ansi_colors() > 1L");
r_preserve(has_colour_call);
}

Expand Down
Loading