Welcome to webR!

webR just had their first release! If you don't know, webR is a project to bring R to web browsers. It is a compilation of R to Web Assembly (WASM). What this means is we can now run in in a web browser. No need to have R installed or to set up a server.

This site is an experiment for me to learn how to use webR. Type your R code in the left box and the result will display in the right. Note there are only a few packages available right now because they need to be compiled. You can find a list of available packages in the webr-repo repository. To use any of these packages run webr::install("package-name"), then you can load it with library("package-name") like usual.

As this is experimental, it's not quite polished. In particular, note following.

The code for this site is available at https://github.com/asbates/web-R-console.


fit <- lm(hp ~ cyl, data = mtcars)
print(summary(fit))