R/set_crayon.R

Defines functions set_crayon

set_crayon = function() {
  if (!is_gitlab() && !is_github()) {
    return(invisible(NULL))
  }
  if (Sys.getenv("CRAYON") == "false") {
    options("crayon.enabled" = FALSE)
  } else {
    options("crayon.enabled" = TRUE)
  }
  return(invisible(NULL))
}
jumpingrivers/inteRgrate documentation built on May 20, 2022, 11:08 p.m.