46

Is there a possibility to use R in a webinterface without the need to install it?

I have only one small script which I like to run but I just want to give it a shot without a long installation procedure.

Thank you.

vonjd
  • 6,146
  • 2
    A "long installation procedure"? Only if you build from source. There are binaries for most popular OS distributions and it takes < 5 minutes to download and install them. – Joshua Ulrich Apr 18 '11 at 20:00
  • 2
    @Joshua: You are right - but "long" is relative, esp. when you compare it to just copy&paste into a webinterface. – vonjd Apr 18 '11 at 20:18
  • 9
    @vonjd: But you could have downloaded, installed, and run your script in less time than it took to write your question and wait for an answer. ;-) – Joshua Ulrich Apr 18 '11 at 20:25
  • 8
    @Joshua Good point. But in some work environments it can take a lot of effort just to get the permission to install any executable on a machine. And on Windows systems, most installations, even after a subsequent uninstall, litter the machine with detritus that accumulates over time and helps bog everything down, so if you aren't sure you're going to use some software there's incentive not to install it. – whuber Apr 18 '11 at 20:40
  • @whuber: I was somewhat joking with my last comment. I'm personally familiar with some of those constraints and I realize the benefits to a sandbox. – Joshua Ulrich Apr 18 '11 at 20:45
  • 6
    You can put an entire Windows installation of R (and RStudio for ease of use) on a flash drive. Just copy the R folder. Then you can take it with you. – kmm Apr 19 '11 at 01:48
  • 3
    This question appears to be off-topic because it is not about statistics. – Nick Stauner Apr 20 '14 at 19:44
  • 4
    This site has a simple R context: http://www.r-fiddle.org/ – Ron Jensen Jan 12 '16 at 18:57
  • Here's R in a jupyter notebook in your browser : https://rnotebook.io & https://tmpnb.org/ – Ben Apr 26 '17 at 16:10
  • 2
    @Ben: Thank you - what a pity that this thread was closed! – vonjd Apr 26 '17 at 17:49
  • 1
    Off topic and all that, but: rextester.com and repl.it work well. If you create an account, you'll probably like datacamp.com even better. – PatrickT Jul 07 '18 at 17:42
  • 1
    How can a question with so much interest - let's not forget that a number of people are working under the tyranny of IT department little men - can be possibly be closed? In any event, I just found trinket, which allows running R and Python on your browser. Fantastic! – Antoni Parellada Aug 14 '18 at 15:49

5 Answers5

23

Yes, there are some Rweb interface, like this one (dead as of September 2020), RDDR online REPL, or Repl.it.

Note: Installation of the R software is pretty straightforward and quick, on any platform.

chl
  • 53,725
8

Sage also has R included with a Python interface. The Sage system is available. Since a couple of years, the prefered way to run SageMath is via CoCalc. It also allows you to run R directly, e.g. in a Jupyter notebook using the R kernel.

Example:

r.data("faithful")
r.lm("eruptions ~ waiting", data=r.faithful)

Output:

Call:
lm(formula = sage2, data = sage0)

Coefficients:
(Intercept)      waiting  
   -1.87402      0.07563  
GaBorgulya
  • 3,363
  • I tried to run an r script in a Sage webinterface but it didn't work - it said that there was an error creating a png (no X.11 available or sth.) – vonjd Apr 19 '11 at 07:46
  • This python interface is freakin hilarious. Do you have any clue how it built? I mean I could make use of a much much simpler system but need to host on my own. – hans0l0 Oct 10 '12 at 19:31
8

Also, if you want to provide a solution to other users, you can set up a webserver with RApache.

nico
  • 4,581
  • 3
  • 32
  • 45
6

Some of the pastebin services will allow you to enter R code. For example, ideone. Here is a very silly hello world in R. I believe ideone limits you to 15 seconds compute time per run, and no fancy IDE, despite the name.

shabbychef
  • 14,814
1

Have a look at RStudio This has a desktop and web version. I have used the desktop version and it is pretty cool.