Skip to content

Commit a92c68d

Browse files
authored
use openxlsx2::wb_colour() to construct cormatrix_to_excel colours (#339)
use openxlsx2::wb_colour() to construct cormatrix_to_excel colours (required as of openxlsx2 1.13)
1 parent 94f3d0a commit a92c68d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

R/cormatrix_to_excel.R

+11-11
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ cormatrix_to_excel <- function(data,
6262
p_val <- attr(cormatrix, "p")
6363

6464
# Define colours
65-
style_gray <- c(rgb = "C1CDCD")
66-
style_black <- c(rgb = "000000")
67-
style_pink <- c(rgb = "FBCAC0")
68-
style_peach <- c(rgb = "F79681")
69-
style_red <- c(rgb = "F65534")
70-
style_lightblue <- c(rgb = "97FFFF")
71-
style_midblue <- c(rgb = "0AF3FF")
72-
style_darkblue <- c(rgb = "00BFFF")
73-
style_green1 <- c(rgb = "698B22")
74-
style_green2 <- c(rgb = "9ACD32")
75-
style_green3 <- c(rgb = "B3EE3A")
65+
style_gray <- openxlsx2::wb_colour(hex = "C1CDCD")
66+
style_black <- openxlsx2::wb_colour(hex = "000000")
67+
style_pink <- openxlsx2::wb_colour(hex = "FBCAC0")
68+
style_peach <- openxlsx2::wb_colour(hex = "F79681")
69+
style_red <- openxlsx2::wb_colour(hex = "F65534")
70+
style_lightblue <- openxlsx2::wb_colour(hex = "97FFFF")
71+
style_midblue <- openxlsx2::wb_colour(hex = "0AF3FF")
72+
style_darkblue <- openxlsx2::wb_colour(hex = "00BFFF")
73+
style_green1 <- openxlsx2::wb_colour(hex = "698B22")
74+
style_green2 <- openxlsx2::wb_colour(hex = "9ACD32")
75+
style_green3 <- openxlsx2::wb_colour(hex = "B3EE3A")
7676

7777
# Colours
7878
gray_style <- openxlsx2::create_dxfs_style(

0 commit comments

Comments
 (0)