Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Support launching Shiny apps via the run button in VS Code

Offen
#1,497 4 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
r, typescript, vscode

Rechercherichtung

Beginne mit dem VS Code-Run-Button-Pfad, der derzeit source("app.R", encoding = "UTF-8") ausführt, und vergleiche ihn mit dem Startverhalten von Shiny der verknüpften pyshiny-vscode extension. Als erledigt gilt die Aufgabe, wenn ein app.R-Shiny-Beispiel über die Run-button-Aktion „Run shiny app“ gestartet werden kann, statt dass manuell runApp('app.R') erforderlich ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

feature-request

Is your feature request related to a problem? Please describe.

When I try to run a shiny application by clicking the Play/Run button, VS Code opens the R console and executes the line:

source("path/to/app.R", encoding = "UTF-8")

However, this does not actually run the shiny app (I tried from a standalone terminal too with the same result). Instead, it seems like I need to type runApp(path/toapp.R') manually into the VS Code terminal to actually launch the shiny application.

I tried this with a simple skeleton in a file called app.R.

library(shiny)


ui <- fluidPage(
  "Hello, world!"
)

server <- function(input, output, session) {}

shinyApp(ui, server)

Describe the solution you'd like

Something similar to the extension for Shiny for Python (and RStudio), where there is an option to added to the run button which says "Run shiny app".

Describe alternatives you've considered

Typing runApp('app.R') manually into the R console. I maybe bind a hotkey to this, but it would be convenient to have a solution that is there by default, especially when teaching with VS Code for R.

Vorherrschende Sprache
TypeScript
Sterne
1.2k
Forks
151
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
76

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus REditorSupport/vscode-R

Alle Issues in REditorSupport/vscode-R

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.