从 runApp 文档:
如果未指定端口,并且设置了 Shiny.port 选项(使用 options(shiny.port = XX)),则将使用该端口。否则,使用随机端口。
所以只需这样做:
# will set the default shiny port to 8100
options(shiny.port = 8100)
Run Code Online (Sandbox Code Playgroud)
和随后的调用runApp将在端口上启动应用程序8100
| 归档时间: |
|
| 查看次数: |
4311 次 |
| 最近记录: |