By julio


2018-07-11 21:14:05 8 Comments

I tried adding the following, but the published app doesn't seem to include my meta tags. The source code shows that the stuff inside of the head tags appears to be default content. I'd like to make my app searchable.

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(...)

1 comments

@MrFlick 2018-07-12 00:15:43

Just make sure you include the meta tags in the fluidPage object. Shiny will pull out all the tags in the head to the appropriate place.

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")
  ), ...)

Related Questions

Sponsored Content

4 Answered Questions

1 Answered Questions

1 Answered Questions

[SOLVED] HTML viewport tag sometimes ignored in mobile Chrome on first visit

1 Answered Questions

[SOLVED] HTML Meta Viewport only for smartphones

1 Answered Questions

[SOLVED] Viewport meta tag not working for iPhone

2 Answered Questions

[SOLVED] Custom meta tag configuration

0 Answered Questions

iphone safari iframe inherit viewport meta tag

3 Answered Questions

Getting error while changing meta tags dynamically

Sponsored Content