R/utils.R

validateIcon <- function (icon) {
  if (is.null(icon) || identical(icon, character(0))) {
    return(icon)
  }
  else if (inherits(icon, "shiny.tag") && icon$name == "i") {
    return(icon)
  }
  else {
    stop("Invalid icon. Use Shiny's 'icon()' function to generate a valid icon")
  }
}

Try the hover package in your browser

Any scripts or data that you put into this service are public.

hover documentation built on March 21, 2021, 1:06 a.m.