这个 Font Awesome 图标 ('gears') 在 R shiny 中不存在

This Font Awesome icon ('gears') does not exist in R 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"

我检查过它在我的旧笔记本电脑上运行良好。我尝试安装并遵循 , but nothing works. I also looked at this solution。在我的情况下没有任何作用。请建议有关 shiny, sinydashboard 的最新更新包的帮助。

为了参考,我尝试了 运行 给出相同错误的示例代码:

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!"
                        ),

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

代码如下:

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

这里根据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

将会

icon("tachometer-alt")

gearscogs