Learn R in Your Browser

Free, interactive R tutorials that run in your browser — no install, no setup. Edit and run real R code as you learn the basics: vectors, data frames, plotting and statistics.

Learn R by running it — right here, no download or install. Every code box on these pages is a real R console powered by webR: edit the code, press Run, see the output. The first run loads R into your browser (a few seconds); after that it’s instant.

TipHow to use these pages

Each grey code box is editable. Change the numbers, press Run Code, and watch what happens — experimenting is the fastest way to learn.

Start here

Interactive tutorials

### R basics R as a calculator, variables, functions and comments — the absolute essentials.

### Vectors The building block of R: creating vectors, indexing them and doing maths on all values at once.

### Data frames R’s spreadsheet: columns, rows, subsetting and exploring a built-in dataset.

### Your first plot Histograms, scatter plots and boxplots — draw them live in the browser.

### Basic statistics Mean, SD, summaries and your first t-test — the statistics starter kit.

### R playground A blank R console — type anything and run it. Your sandbox.


Ready for more? Our blog has deeper R tutorials, and the free calculators put R-accurate statistics one click away. When your project outgrows learning mode, that’s where we come in.