Search code examples
rshinyflexdashboard

Flexdashboard - Open in browser chooses the port randomly


I have a flexdashboard code in R. It always opens in a new port if I launch the code. How to configure in R to open in browser in a specific port. Please help.


Solution

  • Well if you're running it on the local host then this should work:

    rmarkdown::run("shiny_doc.Rmd", shiny_args = list(port = 8241))