R compiled to WebAssembly, running in the web browser
WebR is a version of R (currently based on R 4.3.0) that can run entirely in a web browser.
Why run software in a browser?
Lots of potential reasons!
Let me tell a story about my reasons for creating webR…
WebR allows you to move computation of R code from server-side hardware to client devices
Applications taking advantage of webR’s technology
Knowledge of web development and JavaScript is not required to use webR!
Quarto extensions can be used to integrate webR into materials - e.g 🔗 quarto-webr
Binary R packages for Wasm are available, listed at https://repo.r-wasm.org
webR 0.2.0: 10324 packages available (about 51% of CRAN)
Not all of the packages have been tested! Here “available” means a package, along with all its prerequisites, can be built by the Wasm compiler.
If you know JavaScript, you can use webR’s JavaScript API to integrate webR with existing web frameworks.
I won’t talk about this now, but documentation can be found online at
🔗 https://docs.r-wasm.org/