46
$\begingroup$

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.

$\endgroup$
12
  • 9
    $\begingroup$ @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. ;-) $\endgroup$ Apr 18, 2011 at 20:25
  • 8
    $\begingroup$ @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. $\endgroup$
    – whuber
    Apr 18, 2011 at 20:40
  • 6
    $\begingroup$ 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. $\endgroup$
    – kmm
    Apr 19, 2011 at 1:48
  • 3
    $\begingroup$ This question appears to be off-topic because it is not about statistics. $\endgroup$ Apr 20, 2014 at 19:44
  • 4
    $\begingroup$ This site has a simple R context: r-fiddle.org $\endgroup$
    – Ron Jensen
    Jan 12, 2016 at 18:57

5 Answers 5

23
$\begingroup$

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.

$\endgroup$
4
  • $\begingroup$ No longer works $\endgroup$ Aug 6, 2020 at 14:46
  • $\begingroup$ Thanks @canderson156! Added a few more options. $\endgroup$
    – chl
    Sep 14, 2020 at 18:19
  • $\begingroup$ @chl Nice to see you again! $\endgroup$
    – whuber
    Sep 14, 2020 at 19:58
  • 1
    $\begingroup$ Thanks @whuber! $\endgroup$
    – chl
    Sep 15, 2020 at 9:15
8
$\begingroup$

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

$\endgroup$
2
  • 3
    $\begingroup$ And now there's Rack. $\endgroup$
    – chl
    Apr 19, 2011 at 9:58
  • 2
    $\begingroup$ @chl And now, it is called Rook (-; $\endgroup$
    – user88
    Nov 25, 2011 at 22:33
8
$\begingroup$

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  
$\endgroup$
2
  • $\begingroup$ 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.) $\endgroup$
    – vonjd
    Apr 19, 2011 at 7:46
  • $\begingroup$ 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. $\endgroup$
    – hans0l0
    Oct 10, 2012 at 19:31
6
$\begingroup$

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.

$\endgroup$
2
  • $\begingroup$ The example is empty now. I was curious to see it :( $\endgroup$ Apr 20, 2014 at 8:28
  • $\begingroup$ It seems the links did not survive an API change; a new hellow world is here: ideone.com/6xpOl4 $\endgroup$
    – shabbychef
    Jun 4, 2014 at 16:13
1
$\begingroup$

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

$\endgroup$
1

Not the answer you're looking for? Browse other questions tagged or ask your own question.