Opening the Shiny app directly in the default browser

Usually a brilliant application opens through the built-in browser in R-Studio. Is it possible to open the application directly in a web browser, say, Google Chrome, without going through R-Studio.

+15
source share
2 answers

To launch it using a different approach to @Batanichek, you can find the executables of each of your browsers, and then specify it in the parameters that you need to point to, for example:

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

Step 1: Find where your .exe files are installed for all your browsers, then add the following:

For chrome

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

For firefox

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

For IE

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

Step 2: Launch the application as always

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

In my Rstudio (version 0.98.1103) I can change where to run the application

enter image description here

If you select Run External, launch it in a browser

+20
source

Source: https://habr.com/ru/post/1271736/


All Articles