R · online compiler

Run R online

Run R 4 online — statistical computing, browser-hosted.

Version
Firecracker microVM live per-test verdicts multi-file compile

R is the workhorse of statistical computing and academic data analysis. First-class handling of data frames, huge library of statistical models, ggplot2 for graphics.

ls-judge runs R 4.x inside a Firecracker microVM. Headless — ggplot renders to PDF/PNG files you can inspect.

Starter code

What you get in R

Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.

r
R 4
n <- as.integer(scan("stdin", integer(), n=1, quiet=TRUE))
cat(n * 2, "\n", sep="")
stdin →21
expected →42
FAQ

Common questions about R on ls-judge

Which R version?
R 4.x.
CRAN packages?
Only the base R packages that ship pre-installed. No network to install more.
RStudio?
Use RStudio locally against your own machine; this is a browser runner.
Free?
Yes.
Further reading
Also try