我创建了一个 ui.R
和 server.R
文件,用于对 Shiny
进行非常基本的测试。
当我从 RStudio
执行 runApp()
时,另一个 RStudio 窗口
打开并显示 Shiny front page
。
当我在新窗口中点击 在浏览器中打开
选项卡时,它只会转到 Chrome
浏览器。
我尝试与一些专家讨论,但他们认为我的网络存在代理问题。
最佳答案
RStudio 中有一个下拉菜单,就在运行应用程序按钮旁边,将其更改为运行外部。
或者我们可以设置launch.browser:
runApp(launch.browser = TRUE)
launch.browser If true, the system’s default web browser will be launched automatically after the app is started. Defaults to true in interactive sessions only. This value of this parameter can also be a function to call with the application’s URL.
关于r - Shiny 无法在 RStudio 的浏览器中打开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36031193/