尝试这个:
Rscript -e 'library(methods); shiny::runApp("my_shiny/", launch.browser=TRUE)'
或者更短:
R -e "shiny::runApp('my_shiny')"
Run Code Online (Sandbox Code Playgroud)
如果要指定端口:
R -e "shiny::runApp('my_shiny', port = 3838)"
Run Code Online (Sandbox Code Playgroud)
与大多数其他命令一样,您可以使用Ctr+中断该过程C。
我写了这一行
R -e "shiny::runApp('my_shiny', port = 3838)"
Run Code Online (Sandbox Code Playgroud)
到一个 shell 脚本中,例如,run.sh可以方便地从 shell 作为 运行它sh ./run.sh。:)
| 归档时间: |
|
| 查看次数: |
1423 次 |
| 最近记录: |