8

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!"
                        ),
micstr
  • 5,080
  • 8
  • 48
  • 76
NIrbhay Mathur
  • 153
  • 1
  • 1
  • 10
  • 1
    Check the `packageVersion` of the libraries related to font awesome on both the laptops. I think this might be a version issue. – Ronak Shah Oct 04 '21 at 02:14
  • PackageVersion: shiny :1.7.0,shinydashboard:0.7.1, sinydashboardplus:2.03 – NIrbhay Mathur Oct 04 '21 at 02:45
  • 1
    Looks like `shinydashboardplus` changed the function name to `userBox()` in 2.0.0 as a breaking change: https://github.com/RinteRface/shinydashboardPlus/blob/master/NEWS.md – Jon Spring Oct 04 '21 at 03:40
  • 1
    Finally, i was able to solve this issue by downgrading `packageVersion` – NIrbhay Mathur Oct 04 '21 at 08:10
  • `require (devtools)` `install_version("shinydashboardPlus", version="0.7.5",repos = "http://cran.us.r-project.org")` – NIrbhay Mathur Oct 04 '21 at 08:11
  • how does one check what version of the font awesome library is required? My inclination would be to go to: `?icon` but there is no information there apart from providing links to websites that contain lots of button names that 'do not exist' according to shiny. – Brian D Jul 25 '22 at 18:52

3 Answers3

7

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

Roman
  • 17,008
  • 3
  • 36
  • 49
0

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")
NIrbhay Mathur
  • 153
  • 1
  • 1
  • 10
0

Instead:

icon = icon("play-circle")

use:

icon = icon("play-circle", verify_fa = FALSE)

for each icon you use.

neves
  • 796
  • 2
  • 10
  • 36