Programming Languages

R Playground

Real R 4.x in the browser - vectors, data frames, plots, stats.

Runtime: webR (R in WebAssembly)

First run downloads ~30 MB of R WASM from Posit's CDN; subsequent runs are instant.

About this playground

R 4.x compiled to WebAssembly via webR, the official Posit-maintained build. Real R interpreter with base, stats, utils and graphics packages included. The runtime lazy-loads (~30 MB) only when you open this page. Useful for stats homework, quick data exploration, and teaching R without asking students to install RStudio.

FAQs

Which R version?

webR ships R 4.4. Base R (base, stats, utils, methods, graphics) is bundled; extra CRAN packages can be loaded on demand.

How big is the download?

Around 30 MB compressed for the core, lazy-loaded only when you open this page. After the first load the WASM stays cached.

Will ggplot2 / dplyr work?

webR can install a subset of CRAN packages via webr::install() from its own package repo. Pure-R packages generally work; ones with heavy C dependencies may not.

Does my code leave the browser?

No. webR loads from Posit's CDN once, then every eval happens locally in WebAssembly.

Other playgrounds

AI Summary

Summarize this page in your favorite LLM