Appsilon / rhino

Build high quality, enterprise-grade Shiny apps at speed
https://appsilon.github.io/rhino
289 stars 24 forks source link

Topic: IDE integration #327

Open kamilzyla opened 2 years ago

kamilzyla commented 2 years ago

Integration with these RStudio and Visual Studio Code can be valuable for our users.

Current status

RStudio:

  1. Rhino template for the "New Project Wizard".
  2. "Rhino module" addin.

Ideas to explore

  1. Run tests / linters with a keyboard shortcut and display results in the GUI.
  2. Use RStudio jobs to run tools in the background (see #54).
  3. 310

asadow commented 1 year ago

How about a short-cut to run/preview the app? Similar to the Run run_dev.R addin from golem.

Or is there another quick way?

kamilzyla commented 1 year ago

Hi @asadow and thanks for the suggestion! As far as I understand, Golem has a run_dev() function (saves all files and sources the dev/run_dev.R script to run the app) and a go_to_dev() addin (opens dev/run_dev.R).

In Rhino:

  1. To run/preview the app, you can just use shiny::runApp() or the "Run app" button which appears for the app.R file.
  2. If you want to save all files, you can use the Ctrl+Alt+S shortcut.
  3. We don't have anything like run_dev.R; you can use different settings for development by setting environment variables.

All in all, I don't think Rhino needs anything more here; let us know if you have a specific idea in mind that is not covered by the above.