RStudio automatically detects the currently opened .R file. If the file contains Shiny code, it shows a “Run App” button; if it’s a regular R script, it shows a “Run” button instead. It would be great if the extension could similarly detect the type of file that’s open and display the appropriate run button.