Skip to content

Remove crayon::has_color() --> cli::num_ansi_colors() > 1 #1808

@MichaelChirico

Description

@MichaelChirico

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()");
r_preserve(has_colour_call);
}

Related to #1806, {crayon} is only used in two places; this latter looks easy to remove in favor of {cli}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions