enable_github_colors | R Documentation |
This will set the envvar R_CLI_NUM_COLORS
to n_colors
within the scope of
.local_envir
. To avoid side effects through overriding
crayon::has_color()
, this function only works on_github()
.
enable_github_colors(
n_colors = as.integer(256^3),
.local_envir = parent.frame(),
quiet = FALSE
)
disable_github_colors(.local_envir = parent.frame(), quiet = FALSE)
n_colors |
An integer giving the number of colors. Default 24bit. |
.local_envir |
|
quiet |
Should messages be printed? |
Invisibly returns TRUE
if enabling/disabling was successful,
FALSE
otherwise.
Sys.setenv(GITHUB_ACTIONS = "true")
enable_github_colors()
Sys.setenv(GITHUB_ACTIONS = "false")
enable_github_colors()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.