R/color.R
This function is
used in both the console and vis_drake_graph()
Your console must have the crayon package enabled.
drake_palette()
There is a console message,
but the actual return value is NULL
.
This palette applies to console output
(internal functions console()
and
console_many_targets()
) and the node colors
in vis_drake_graph()
.
So if you want to contribute improvements to the palette,
please both drake_palette()
and
visNetwork::visNetwork(nodes = legend_nodes())
# Show drake's color palette as text. drake_palette()#>#> #> #> #> #> #> #> #> #> #> #> #> #> #> #> #> #># Show part of the palette as an interactive visNetwork graph. # These are the nodes in the legend of vis_drake_graph().# NOT RUN { visNetwork::visNetwork(nodes = legend_nodes()) # }