main.r
Loading editor…
ReadyLn 1, Col 1R

R

R online compiler

Online R compiler for statistics scripts and data frames.

About this R compiler

R is the language of statistics and data analysis. Run a script, print vectors, summaries and data frames, and read input from the console.

Questions and answers

Which version of R is this?
R 4.6, with the recommended packages that ship with it, such as MASS, Matrix and lattice.
Can I install packages from CRAN?
No. The sandbox has no network, so only base R and the recommended packages are available. The tidyverse is not installed.
Can I draw plots?
Not yet: the runner returns text only. Use print, summary, table and str to inspect your data.
How do I read input?
readline() only works in an interactive R session. In a script, read from standard input with readLines(file("stdin"), n = 1), as the sample does.