#' Convert RGB values to HEX colour codes
#'
#' Suited for using in viz packages like {wordcloud2}
#' A convenience wrapper around `rgb()`
#'
#' @param r Value for r
#' @param g Value for g
#' @param b Value for b
#' @examples
#' rgb2hex(0,144,218)
#'
#' @export
rgb2hex <- function(r, g, b){
rgb(r, g, b, maxColorValue = 255)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.