简体   繁体   English

Rstudio中的模块化闪亮应用程序工作流程

[英]Modular Shiny app workflow in Rstudio

While developing a modular Shiny app (with multiple .R files that are sourced by global.R) in RStudio I have to repeatedly 在RStudio中开发模块化的Shiny应用程序(具有来自global.R的多个.R文件)时,我不得不反复

  • switch to ui.R or server.R 切换到ui.R或server.R
  • click Run App 点击运行应用
  • click Stop 单击停止
  • navigate back the R file I'm working on 导航回我正在处理的R文件

Doing this many times is a pain as I hardly work on ui.R or server.R files directly. 因为我几乎不直接在ui.R或server.R文件上工作,所以这样做很痛苦。 I've looked for a keyboard shortcut for Run App here to no avail. 我找了一个键盘快捷键运行应用程序在这里无济于事。

Typing runApp() in the Console is a workaround. 在控制台中键入runApp()是一种解决方法。 Anything better? 有什么更好的吗?

If your question is just for a shortcut for Run App, ctrl + shift + enter (on windows) works in server.R, ui.R, and app.R files. 如果您的问题仅是针对Run App的快捷方式,则ctrl + shift + enter(在Windows上)适用于server.R,ui.R和app.R文件。

Edit: In RStudio you can also use ctrl+f9 and ctrl+f10 to navigate across open tabs and then use ctrl+shift+enter to execute. 编辑:在RStudio中,您还可以使用ctrl + f9和ctrl + f10导航打开的选项卡,然后使用ctrl + shift + enter执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM