Repository navigation
Add a managed webR provider to R Interactive - #2005
Open
renkun-ken wants to merge 11 commits into
Open
renkun-ken wants to merge 11 commits into
renkun-ken wants to merge 11 commits into
Conversation
This was referenced Nov 28, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Offer webR in the R Interactive session picker before native R or arf is required. Run selections, source, and R Markdown chunks in a stateful worker supervised by the existing desktop session agent. A project mount gives R relative access to project source and data. Console output, conditions, nested input, interruption, and static PNGs use the existing Interactive presentation. Reconnecting to a running agent preserves the R session and transcript.
The console evaluator is also shared with the browser frontend in the next PR. The language-service worker from #2004 runs independently.
Verification
Stacked on #2004. Tracks #2003.
Package installation
A fresh webR Interactive session accepts
install.packages("ggplot2")andlibrary(ggplot2). The console selects compatible WebAssembly binaries and keeps the usual package loading semantics. Detached webR agents use a private writable host directory for the synchronous downloader while R retains its mounted project directory. Interactive notebook cells and input follow their bound webR session for language features in auto mode.Verified with the packaged VSIX and the desktop VS Code helper launched from
/. It installed ggplot2 4.0.3 and its dependencies, then rendered a scatterplot. Added regression tests for ordinary installation, a missing package, downloading an index, and bound language-service selection.