messageItem() with timestamp produces warning
samssann opened this issue · comments
sam commented
Function messageItem() uses shiny::icon("clock-o")
which produces a warning for non-existent icons in the new shiny
>= 1.7.0 and fontawesome
framework. There are two easy options to fix this:
- add
verify_fa = FALSE
argument toshiny::icon()
- use
shiny::icon("clock")
orfontawesome::fa("clock")
> shinydashboard::messageItem
function (from, message, icon = shiny::icon("user"), time = NULL,
href = NULL)
{
tagAssert(icon, type = "i")
if (is.null(href))
href <- "#"
tags$li(a(href = href, icon, h4(from, if (!is.null(time))
tags$small(shiny::icon("clock-o"), time)), p(message)))
}
> shiny::icon("clock-o")
This Font Awesome icon ('clock-o') does not exist:
* if providing a custom `html_dependency` these `name` checks can
be deactivated with `verify_fa = FALSE`
Package information
shinydashboard 0.7.2
shiny 1.7.1
fontawesome 0.2.2