Getting Started

Download and Launch

webRios app icon

webRios is available on the App Store. Tap the badge below to download:

Download on the App Store

Once installed, tap the webRios icon on your home screen to open the app. On first launch, you’ll see a loading screen with a progress bar while the R runtime initializes. This takes 5–15 seconds.

Subsequent launches are faster because your device caches the initialized runtime.

The Getting Started Checklist

When R is ready, the Console opens with a Getting started checklist: six first steps, each ticked off as you do it, wherever you do it:

  1. Run a line of R
  2. Make a plot
  3. Open a script
  4. Install a package
  5. Open a file from Files
  6. Stop a long run

The header counts progress, “0 of 6” to start. Tap it to fold the list to that line. The list folds itself once the Console has output, and starts folded in the iPad 4-Pane Workspace. Tap ✕ to close it. Settings > Help & Resources > Getting Started brings it back, ticks kept and unfolded. When all six are done it says “You’re all set” and puts itself away; the same Settings row then starts it over, all six unticked.

Show me

Each step not yet done has Show me. It takes you to where the step happens and, for most steps, puts a one-line tip at the top of the window; the checklist scrolls to keep that step in view. For the first two it fills in summary(cars) or plot(cars) and rings Run, so one tap does the step. It never replaces what you have typed, and fills in nothing while R is busy; the tip then says what to run.

The other steps:

  • Open a script opens the Getting Started example in the Editor, which ticks the step.
  • Install a package opens Packages on Browse with gapminder, a small data package, already searched for; the keyboard stays down. Tap the download arrow beside it, then Install. It takes a few seconds: it brings tibble and what tibble needs.
  • Open a file from Files explains how, since webRios can’t reach into another app: in Files, touch and hold a CSV, R script or .RData file, tap Open With, and choose webRios. A script opens in the Editor; a data file opens ready to load into R. Share instead keeps the file until you import it (see Shared files). Open Files switches to the Files app. Opening a file from Mail or another app ticks the step too.
  • Stop a long run fills in a 20-second loop, for (i in 1:20) Sys.sleep(1). Tap Run; once the loop is going, Show me rings Stop. Tap it and R stops, variables kept. See Stopping running code.

Try Your First R Command

Once R loads, you land on the Console. Below the checklist, a welcome card offers commands to run with a tap and an example script. The screenshots from here on show the Console without the checklist. Type an expression in the input field and tap the button to run it.

1 + 1
x <- 1
x
print("hello")
message("goodbye")
warning("uh-oh")
stop("a wild error appears!")

Different output types are color-coded. Regular output, messages, warnings, and errors each appear in a distinct color.

Create Your First Plot

To create a plot, type a plotting command in the Console and tap .

speed <- rnorm(100, mean = 60, sd = 6)
plot(speed, type = "l", main = "Speed Study | Line Plot",
     xlab = "Sampled Drivers", ylab = "km/hour",
     col = "darkgreen", lwd = 2)

Switch to the Plots tab to see your visualization. You can pinch to zoom and tap to share it.

Install a Package

To install additional packages, go to the Packages tab and install from the webR package repository.

  1. Open the Packages tab (under More on iPhone)
  2. Tap the menu
  3. Select Install Package
  4. Type a package name (e.g., jsonlite)
  5. Tap Install

Or run install.packages("dplyr") in the Console or Editor, as in any R session. The repository is set to repo.r-wasm.org.

Only packages compiled for WebAssembly are available. Most popular ones are there, dplyr, ggplot2, tidyr and stringr among them; the webR package repository has the full list.

Explore the App

webRios has seven main sections, accessible from the tab bar at the bottom of the screen:

Console

Interactive R command line with color-coded output, command history, and the R keyboard toolbar.

Editor

Write multi-line R scripts with syntax highlighting, multiple tabs, code folding, and code completion.

Plots

View, zoom, and export your R graphics. Pin favorites and share via the system share sheet.

Environment

Inspect your R workspace: see variables, data frames, models, and their values at a glance.

Files

Browse, create, import, and export R scripts and data files with iOS Files app integration.

Packages

Install additional R packages from the webR repository. Thousands of packages available.

Settings

Configure themes, editor preferences, keyboard shortcuts, and manage memory.