Learn R Programming

covr (version 4.0.0)

colorblind_palette: Colors for color vision deficiency

Description

colorblind_palette has colors for the covr.report_colors option that are easier to tell apart with color vision deficiency than the default green and red: blue for covered code, yellow for partial coverage and vermillion for missed code, from the Okabe-Ito palette. They are used in report(), file_report() and the coverage percentages printed in the console.

Usage

colorblind_palette

Arguments

Format

A named character vector with elements covered, partial and missed.

Details

To set the colors in your .Rprofile without loading covr, copy the values.

Examples

Run this code
colorblind_palette
if (FALSE) {
options(covr.report_colors = covr::colorblind_palette)
report()
}

Run the code above in your browser using DataLab