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. Those requests reveal your IP address, User-Agent, and which packages you fetch to that third party.

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.

Imprint

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