我正在嘗試使用帶有自定義埠的 .bat 檔案運行 Shiny 應用程式。這是我所擁有的:
測驗.bat:
d:
cd "C:\Users\directory"
R -e "options(shiny.port = 5242)"
start "prog1" R -e "shiny::runApp()"
start "prog2" "C:\Program Files\Google\Chrome\Application\chrome.exe" "http://localhost:5242"
事實是,執行:
> options(shiny.port = 5242)
> shiny::runApp()
從 RStudio 控制臺作業。但是,當我從 cmd 嘗試此操作時,它不會在不將埠應用于應用程式的情況下打開應用程式。
任何的想法?
uj5u.com熱心網友回復:
解決方案 :
d:
cd "C:\Users\directory"
start "prog1" R -e "options(shiny.port=5242);shiny::runApp()"
start "prog2" "C:\Program Files\Google\Chrome\Application\chrome.exe" "http://localhost:5242"
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/396101.html
