Hi all
I would like to embed a tweet in my shiny app and when someone clicks on the tweet it redirects them directly to the original tweet in twitter.
Here is an app created by @nsgrantham were part of his app is doing so:
https://nsgrantham.shinyapps.io/tidytuesdayrocks/
I tried to write the following code, but it did not work for me:
ui <- fluidPage(
titlePanel("SMT"),
uiOutput("tweet")
)
server <- function(input, output) {
output$tweet <- renderUI({
tags$blockquote(class = "twitter-tweet",
tags$a(href = "https://twitter.com/SudanPMHamdok/status/1222920158764728327"))
})
}
My apologize if I did not report the issue correctly, it's my first time I post an issue.