Opening Shiny App directly in the default browser

前端 未结 2 952
离开以前
离开以前 2020-11-27 21:01

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 throu

相关标签:
2条回答
  • 2020-11-27 21:27

    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:

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

    Step 1: Locate where your .exe files are installed for all you 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: Run the app as always

    runApp(list(ui = ui, server = server),host="192.168.xx.xx",port=5013, launch.browser = TRUE)
    
    0 讨论(0)
  • 2020-11-27 21:30

    In my Rstudio(Version 0.98.1103) i can change where run app

    If your choose Run External its run into browser

    0 讨论(0)
提交回复
热议问题