Loading…

R Online

Disclaimer

About this app

This app is at an alpha stage, please use with caution.

As this app launches docker processes whenever you hit RUN, and there is limited resources on the server it is run on, please be gentle with your request: this app was designed for fun & for historical exploration, not for heavy computing or analysis of large datasets. In order to prevent the server from crashing, each of your call has access to a limited amount of the host memory.

If you want to run this with heavier computation, please wait for the code to be put online on the GitHub repo and run it locally.

Notes

There is no "extra" package installed on the R versions other than the ones coming with a fresh install.

About me

The easiest way to get in touch with me is Twitter.

See also my website.

Try R

Run a piece of code against a specific version of R, from 3.6.0 to 3.1.0. To do that, simply enter the code below and click the RUN button.

Enter code:

# run R Online

R.version.string

print("hello world")


        

Compare R

Run a piece of code against two specific versions of R, from 3.6.0 to 3.1.0. To do that, simply enter the code below and click the RUN button.

See below for example of changes between versions.

Enter code:

 # run R Online

R.version.string

print("hello world")

Results for version 1:


          

Results for version 2:


          

 

Example of changes between R versions:

  • "The default method for generating from a discrete uniform distribution (...) has been changed" in R 3.6.0. You can see this by running set.seed(2811); sample(1:1000, 2) against R 3.6.0 and older versions.
  • Example of new functions in R 3.6.0: nullfile(); osVersion; asplit().
  • New implementation in R 3.5.0: factor() of empty elements factor(list()) returns an empty factor, an error before.
  • Starting from R 3.5.0, {methods} is now loaded when RScript is called: see sessionInfo()$basePkgs.

About

About the App

This app has been built by @_colinfay - colinfay.me

I've found a bug / something is not working

Please open an issue on the GitHub repo.

How does it work?

Each time you press RUN, a docker run is launched with the version of R you've specified, and the text you've entered in the ad hoc section is run via RScript.

Tech specs

This service is built on top of:

Licence

This work is under licensed under GPL-3 (TL;DR legal).