https://github.com/hrbrmstr/webr-monaco-repl
π§ͺ πΈοΈ Monaco-powered WebR "REPL"
https://github.com/hrbrmstr/webr-monaco-repl
monaco-editor r repl rstats webr webr-experiment
Last synced: 10 months ago
JSON representation
π§ͺ πΈοΈ Monaco-powered WebR "REPL"
- Host: GitHub
- URL: https://github.com/hrbrmstr/webr-monaco-repl
- Owner: hrbrmstr
- License: agpl-3.0
- Created: 2023-04-09T13:03:03.000Z (about 3 years ago)
- Default Branch: batman
- Last Pushed: 2023-04-11T10:12:35.000Z (about 3 years ago)
- Last Synced: 2025-07-27T04:51:33.128Z (11 months ago)
- Topics: monaco-editor, r, repl, rstats, webr, webr-experiment
- Language: JavaScript
- Homepage: https://rud.is/w/repl
- Size: 638 KB
- Stars: 25
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# π§ͺ πΈοΈ WebRIDEr: Monaco-powered WebR "REPL" & IDE
This is a fairly accessible project so I'm not going to complicate it with "Vite" or "Lit" bits.
I wouldn't pay for this, but it's a pretty decent IDE for WebR, given WebR itself is at 0.1.1.
## Left Source Pane
- Auto-saves current source pane contents to local storage
- R syntax highlighting
- An oddly decent # of auto-completes
- cmd-shift-p to bring up command palette
- **WebR: Clear Local Storage** β nuke local storage and replace with the default document
- **WebR: Save Canvas as PNG** β captain obvious
- **WebR: Save Source Pane** β captain obvious
- **WebR: View WebR Environment Summary** β captain obvious
- **WebR: View WebR History** β captain obvious
- cmd-shift-i inserts `|>`
- option-shift-minus inserts `<-`
- watches for `?β¦` and will open up a new tab for web help on whatev u searched for (XSS protected)
- watches for `broweURL(β¦)` and will open up the URL in a new tab (XSS protected)
- baked-in `install.runiverse(pkg)` which will try to install a pkg from R Universe. It is ON YOU to load the deps and ensure all deps and the `pkg` itself will work in WebR. You can [use this tool I made](https://observablehq.com/@hrbrmstr/fiddling-with-r-universe-webr) to help you out.
-
## Top Right Plot Pane
- janky-ish {webr} `canvas()` displayer
## Bottom Right Console
- non-editable & non-interactive output place for what is sent to the R console, including `stdout` and `stderr`
See it live!
