Reputation: 196
I faced a weird situation today, I was developing an app on R Shiny for some days and which was working on my laptop. Today I changed my PC (installed new windows) when I run my app it gave me this error:
This Font Awesome icon ('gears') does not exist:
* if providing a custom `html_dependency` these `name` checks can
be deactivated with `verify_fa = FALSE`
Error in widgetUserBox(title = "Alexander Pierce", subtitle = "Founder & CEO", :
could not find function "widgetUserBox"
I check back it works well on my old laptop. I tried to install and follow Solution mentioned here, but nothing works. I also looked at this solution. Nothing works in my case. Kindly suggest help on the latest updated package from shiny, shinydashboard.
For reference I tried to run example code which is giving same error:
widgetUserBox(
title = "Alexander Pierce",
subtitle = "Founder & CEO",
type = NULL,
src = "https://adminlte.io/themes/AdminLTE/dist/img/user1-128x128.jpg",
color = "aqua-active",
closable = TRUE,
"Some text here!",
footer = "The footer here!"
),
Upvotes: 8
Views: 11245
Reputation: 846
Instead:
icon = icon("play-circle")
use:
icon = icon("play-circle", verify_fa = FALSE)
for each icon you use.
Upvotes: 0
Reputation: 17648
Here it was enough to change icon names according https://fontawesome.com/v5.15 like
> icon("dashboard")
This Font Awesome icon ('dashboard') does not exist:
* if providing a custom `html_dependency` these `name` checks can
be deactivated with `verify_fa = FALSE
will be
icon("tachometer-alt")
or gears
to cogs
Upvotes: 6
Reputation: 196
The solution for this problem is just to downgrade the new version of ShinydashboardPlus from 2.0.3 to 0.7.5.
Here is the code :
require (devtools)
install_version("shinydashboardPlus", version="0.7.5",repos = "http://cran.us.r-project.org")
Upvotes: 0