R 闪亮中不存在此 Font Awesome 图标(“齿轮”)

NIr*_*hur 9 r font-awesome shiny

我今天遇到了一个奇怪的情况,我在 R Shiny 上开发一个应用程序几天了,它在我的笔记本电脑上运行。今天我更换了电脑(安装了新的 Windows),当我运行我的应用程序时,它给了我这个错误:

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"
Run Code Online (Sandbox Code Playgroud)

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!"
                        ),
Run Code Online (Sandbox Code Playgroud)

Rom*_*man 7

这里根据https://fontawesome.com/v5.15更改图标名称就足够了

> 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
Run Code Online (Sandbox Code Playgroud)

icon("tachometer-alt")
Run Code Online (Sandbox Code Playgroud)

或者gearscogs


NIr*_*hur 0

这个问题的解决办法就是将新版本的ShinydashboardPlus从2.0.3降级到0.7.5。

这是代码:

require (devtools) 
install_version("shinydashboardPlus", version="0.7.5",repos = "http://cran.us.r-project.org")
Run Code Online (Sandbox Code Playgroud)

  • 为什么要降级shinydashboardPlus?它可能会失去一些其他功能。`erify_fa = FALSE` 不起作用吗? (6认同)
  • @LazarusThurston,在哪里添加 `verify_fa = FALSE`?谢谢 (4认同)