webR is a project that compiles the R statistical programming language into WebAssembly, enabling it to run entirely within web browsers or JavaScript environments without requiring a server-side installation. By using Emscripten to adapt R’s C, C++, and Fortran codebase, webR creates a fully functional runtime that can execute R scripts directly in the browser. The project includes a web-based integrated development environment that uses tools like xterm.js and CodeMirror, allowing users to interact with R through a familiar console and editor interface. It supports installing and running R packages, making it possible to perform data analysis, statistical modeling, and visualization entirely client-side. webR also provides distribution options such as npm packages, CDN hosting, and Docker images for flexible deployment. While it currently includes a minimal set of compiled libraries, it is designed to expand its ecosystem over time.
Features
- Full R language runtime compiled to WebAssembly
- In-browser IDE with terminal and code editor integration
- Support for executing R scripts and installing packages
- Deployment via npm, CDN, or self-hosted builds
- Integration with JavaScript and web applications
- Portable statistical computing without server dependency