我正在尝试将youtube视频嵌入到我的仪表板中,这似乎很简单,但是对我来说不起作用。我在这里想念什么吗?谢谢!
这是我的测试仪表板代码:
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader(title = "Basic dashboard"),
dashboardSidebar(),
dashboardBody(
fluidRow(
column(3,
box(
width = NULL,
title = "YT Video Here",
HTML('<iframe width="560" height="315" src="https://www.youtube.com/embed/ScMzIvxBSi4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')
)),
column(9,
box(
width = NULL,
title = "Other Content"))
)
)
)
server <- function(input, output) {
}
shinyApp(ui, server)