R Fiddle Booting R in your browser…

  

Allow package install?

This script wants to install the following R packages:

Installing will send HTTP requests to repo.r-wasm.org and rforms.r-universe.dev. Those requests reveal your IP address, User-Agent, and which packages you fetch to those third parties.

Until you allow it, the page makes no third-party requests.

Fetch code from URL

Load R code from:

Fetching reveals your IP address and User-Agent to that host. Until you allow it, the page makes no third-party requests.

URL parameters & sharing

R Fiddle reads a few query-string and fragment parameters so you can pre-load code, set the editor mode, or auto-run on open. None of them cause a network request unless you explicitly approve it.

Code in the URL

?code=<base64url>
Embed a snippet directly. Best for short payloads — long ones bloat the URL.
#code=<base64url>
Same idea, but in the fragment. Browsers don't send fragments to the server, and there's no length budget to worry about. The Share button uses this form.

Editor mode

?lang=r | ?lang=rmd | ?lang=qmd
Pick the editor mode and the default content shown when no code= is given.
?file=<name>
Inferred shortcut: foo.Rmd sets lang=rmd, foo.qmd sets lang=qmd.

Auto-run after load

?autorun=1
Run as soon as webR is ready. Combine with any of the above.

Load from an external source

A consent prompt appears before any fetch. The page makes no third-party request until you click Fetch.

?url=<absolute URL> or #url=<absolute URL>
Fetch any URL serving R, Rmd, or Qmd source. The file extension picks the editor mode.
?gist=<id> or #gist=<id>
Fetch a GitHub gist via api.github.com. Accepts the gist URL, the bare hex ID, or gist:<id>. The first .R/.Rmd/.qmd file in the gist is used (or the first file if none match).

Every parameter (lang, file, autorun, url, gist) accepts both forms. The # form keeps the value out of server logs since browsers don't send fragments to the server.

Examples

Sharing

The Share button writes a self-contained URL to the clipboard with ?lang=… and #code=…. Anyone you send it to can run the code without server contact.

Install on iPhone / iPad

iOS doesn't expose a one-tap install API, but Safari can add R Fiddle to your home screen:

  1. Tap the Share button in Safari's toolbar.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add to confirm.

If you're not in Safari, open this page there first — Chrome, Firefox, and other iOS browsers can't install web apps.

Once installed, R Fiddle launches like a native app and runs entirely on your device.

Imprint

Rform Research Mixtapes UG (haftungsbeschränkt)
Turmstr. 10
10559 Berlin
Germany