Som Bohora
Som Bohora

Reputation: 1

including .Rmd file in Shiny dashboard

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?

enter image description here

Upvotes: 0

Views: 471

Answers (1)

doctshind s
doctshind s

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

Related Questions