Reputation: 1
I am trying to embed an .Rmd
file in my Shiny dashboard using:
HTML(markdown::markdownToHTML(knitr::knit('server.Rmd', quiet = FALSE)))
When I run the app, the width of the web page shrinks as shown below. How do I control the page size?
Upvotes: 0
Views: 471
Reputation: 390
I too had this issue, I have added the below code in ui.R and it helped me to render properly:
tags$head(tags$style(HTML("
body {
width: 100% !important;
max-width: 100% !important;
}
")))
hope this helps
Upvotes: 1