I’m currently trying to package my Shiny app into a standalone application using R Portable and Google Chrome Portable, and I’m following the guide from AnalytixWare. The setup works on my PC, but I’m encountering a couple of issues.
Loading Issue on First Run: When I first click run.vbs, it opens a Chrome Portable window, but it only shows a loading symbol in the top-left corner with the URL 127.0.0.1_/. The page doesn’t load the Shiny app. However, if I keep this empty Chrome window open and then run run.vbs again, the Shiny app loads correctly in a new window.
Session Quit Issue: I have implemented a quit session function in my App.R to quit the R session after closing the Chrome window. This function works only with the Chrome window that successfully runs run.vbs. If I close the Chrome window that shows the loading symbol, the R session continues to run in the background.
Could someone help me understand why this is happening and how I can fix it?
I’ve tried uninstall and reinstall the R and Chrome portable, re-set working direction for my R. Individually running app.R works perfectly but if run runShinyApp.R will get into the same problem as mentioned above.
Yuzhen Zhang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.