【问题标题】:How to define links for social network icons on flexdashboard?如何在 flexdashboard 上定义社交网络图标的链接?
【发布时间】:2016-08-30 18:11:47
【问题描述】:

我为 flexdashboard 的导航栏添加了社交图标,但无法为每个图标添加适当的链接。

在 R Markdown 文件中,我添加了:

output: 
  flexdashboard::flex_dashboard:
      social: [ "twitter", "facebook", "linkedin" ]

如何为每个社交网络添加链接?

【问题讨论】:

    标签: r r-markdown flexdashboard


    【解决方案1】:

    到目前为止我想出的解决方案是使用

    - { icon: "fa-twitter", href: "link to my twitter account",align: right}
    

    它有效,但也许有更好的选择。

    【讨论】:

      【解决方案2】:

      你可以这样做:

      ---
      title: "Manoj Kumar"
      output: 
        flexdashboard::flex_dashboard:
          orientation: columns
          navbar:
              - { icon: "fa-question-circle", href: "https://google.com", align: right }
              - { icon: "fa-twitter", href: "https://twitter.com/YourAccount", align: right}
              - { icon: "fa-linkedin", href: "https://www.linkedin.com/in/YourAccount", align: right}
      runtime: shiny
      ---
      

      【讨论】:

        猜你喜欢
        • 2012-08-12
        • 1970-01-01
        • 2017-11-05
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多