Skip to content
Open
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 @@ -17,7 +17,7 @@
static r_obj* has_colour_call = NULL;

bool r_has_colour(void) {
if (!r_is_installed("crayon")) {
if (!r_is_installed("cli")) {

Check warning on line 20 in src/rlang/session.c

View check run for this annotation

Codecov / codecov/patch

src/rlang/session.c#L20

Added line #L20 was not covered by tests
return false;
}

Expand All @@ -29,7 +29,7 @@
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