4

I added social icons to navbar for a flexdashboard, but there's no way to add an appropriate link for each of them.

in an R Markdown file, I added:

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

How can I add links for each social network?

Mehdi Zare
  • 1,221
  • 1
  • 16
  • 32

2 Answers2

2

You can do something like this:

---
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
---
Manoj Kumar
  • 5,273
  • 1
  • 26
  • 33
1

The solution I came up with so far is to use

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

It works but maybe there is a better alternative out there.