如何在我的 R Shiny 应用程序中包含元标记?
How can I include meta tags in my R Shiny app?
我尝试添加以下内容,但发布的应用似乎不包含我的元标记。源代码显示 head 标签内的内容似乎是默认内容。我想让我的应用程序可搜索。
tags$head(
tags$meta(charset="UTF-8"),
tags$meta(name="description", content="..."),
tags$meta(name="keywords", content="..."),
tags$meta(name="viewport", content="width=device-width, initial-scale=1.0")
)
ui<-fluidPage(...)
只需确保在 fluidPage
对象的 中包含元标记 。 Shiny会将head
中的所有标签拉出到合适的地方。
ui<-fluidPage(
tags$head(
tags$meta(charset="UTF-8"),
tags$meta(name="description", content="..."),
tags$meta(name="keywords", content="..."),
tags$meta(name="viewport", content="width=device-width, initial-scale=1.0")
), ...)
我尝试添加以下内容,但发布的应用似乎不包含我的元标记。源代码显示 head 标签内的内容似乎是默认内容。我想让我的应用程序可搜索。
tags$head(
tags$meta(charset="UTF-8"),
tags$meta(name="description", content="..."),
tags$meta(name="keywords", content="..."),
tags$meta(name="viewport", content="width=device-width, initial-scale=1.0")
)
ui<-fluidPage(...)
只需确保在 fluidPage
对象的 中包含元标记 。 Shiny会将head
中的所有标签拉出到合适的地方。
ui<-fluidPage(
tags$head(
tags$meta(charset="UTF-8"),
tags$meta(name="description", content="..."),
tags$meta(name="keywords", content="..."),
tags$meta(name="viewport", content="width=device-width, initial-scale=1.0")
), ...)