rich-iannone / DiagrammeR
Showing 2 of 3 files from the diff.

@@ -109,7 +109,8 @@
Loading
109 109
  # Handle vector of hexadecimal or named colors
110 110
  if (length(palette) > 1) {
111 111
    # Verify colors are valid
112 -
    if (!all(tolower(palette) %in% x11_hex()$hex)) {
112 +
    is_valid_hex <- grepl(toupper(palette), pattern = "#[0-9A-F]{6}")
113 +
    if (!all(is_valid_hex)) {
113 114
      emit_error(fcn_name = fcn_name,
114 115
                 reasons = "The color palette contains invalid hexadecimal values.")
115 116
    }

@@ -156,7 +156,8 @@
Loading
156 156
  # Handle vector of hexadecimal or named colors
157 157
  if (length(palette) > 1) {
158 158
    # Verify colors are valid
159 -
    if (!all(tolower(palette) %in% x11_hex()$hex)) {
159 +
    is_valid_hex <- grepl(toupper(palette), pattern = "#[0-9A-F]{6}")
160 +
    if (!all(is_valid_hex)) {
160 161
      emit_error(fcn_name = fcn_name,
161 162
                 reasons = "The color palette contains invalid hexadecimal values.")
162 163
    }
Files Coverage
R 81.04%
Project Totals (241 files) 81.04%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading