Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 R 中有一个 flexdashboard 代码。如果我启动代码,它总是在新端口中打开。如何在 R 中配置以在特定端口的浏览器中打开。请帮忙。
好吧,如果您在本地主机上运行它,那么这应该可以工作:
rmarkdown::run("shiny_doc.Rmd", shiny_args = list(port = 8241))