在默认浏览器中直接打开 Shiny App [英] Opening Shiny App directly in the default browser

查看:84
本文介绍了在默认浏览器中直接打开 Shiny App的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,闪亮的应用程序通过 R-Studio 中的内置浏览器打开.是否可以直接在网络浏览器中打开应用程序,比如谷歌浏览器,而无需通过 R-Studio.

Normally the shiny app opens through the inbuilt browser within R-Studio. Is it possible to open the app directly in the web browser, say Google Chrome, without going through the R-Studio.

推荐答案

要使用@Batanichek 的不同方法运行它,您可以找到每个浏览器的可执行文件,然后在要指向的选项中指定它,如下所示:

To run it using different approach to @Batanichek you can locate the executables of each of your browsers and then specify it in options which to point to, as so:

您可以在 R 环境(我使用 RStudio)中找到 options 及其参数,例如options(browser = )

You can find the options and its arguments in the R environment (I used RStudio) e.g. options(browser = )

步骤 1:找到所有浏览器的 .exe 文件的安装位置,然后添加以下内容:

对于 Chrome

options(browser = "C:/Program Files/Google/Chrome/Application/chrome.exe")

对于火狐

options(browser = "C:/Program Files/Mozilla Firefox/firefox.exe")

IE浏览器

options(browser = "C:/Program Files/Internet Explorer/iexplore.exe")

第 2 步:照常运行应用

runApp(list(ui = ui, server = server),host="192.168.xx.xx",port=5013, launch.browser = TRUE)

这篇关于在默认浏览器中直接打开 Shiny App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆