语言 R 的基于网络的解释器 [英] web based interpreter for language R
问题描述
我正在寻找 R 语言的基于网络的解释器.更准确地说,我正在寻找像 http://codepad.org/ 这样的 IDE,我可以在其中提供代码和服务器应该执行并向我提供输出.
我使用了像 Rapache 这样的应用程序,但后来它们不符合我的要求,因为它们不能接受来自客户端的代码、执行它并提供结果.
简而言之,我可以找到接受用户输入的网络应用程序,执行特定的 R 脚本,然后以整齐的格式放置输出,而不是接受 R 代码的网络应用程序,执行它然后将其放入一种巧妙的方式.
想到了一些可能性:
- ideone 提供了很多不同的语言,R 就是其中之一.当您运行脚本时,会为您提供一个链接,您可以将其嵌入到网页中(但不幸的是,该链接不显示输出).如果您创建了一个帐户,您还可以存储您之前运行的脚本.
- 专业版:您可以轻松地将
/plain/
插入到脚本中,并能够获取可直接在 R 中获取的 URL.例如,如果您的在线脚本的 URL 为http://ideone.com/PIkeD",然后就可以使用source("http://ideone.com/plain/PIkeD")
直接从 ideone 服务器加载您的脚本. - 缺点:
停留在 2.11 版可能并不总是 R 的最新版本.目前是 3.2.2.无法安装其他软件包.输出未显示在提供的嵌入脚本中.
- 专业版:您可以轻松地将
Cloudstat 控制台运行更新版本的R (2.15.1) 有不少常用的包.它曾经有一个非常有趣的博客/笔记本界面,它集成了代码和输出,但目前似乎还没有.- Pro:对于在紧要关头运行相当简单的事情很有用.
- 缺点:无法安装其他软件包.输出没有在代码块中格式化,因此不容易阅读.目前,无法保存或共享您运行的代码.
- 优点:几乎可以满足您对 R/RStudio 的所有期望.允许您使用 Sweave 和 R markdown 来自动创建文档.这些文档也可以公开托管.这是我在名为gallery"的公共文件夹中放置页面的示例:http://crunch.kmi.open.ac.uk/people/~mrdwab/gallery/howzat.html
- 缺点:有时加载时间有点慢,但当我运行 RStudio 桌面时,我不知道 Crunch 与运行我自己的 RStudio 服务器相比如何.
2014 年 1 月 10 日更新
最近,关于 R-Fiddle 的讨论也很有趣共享 R 代码的方式.看起来这就是强大的 http://www.rdocumentation.org/ 网站的动力.>
I am looking for a web based interpreter for the language R. To be more precise , i am looking for a IDE like http://codepad.org/ where i can provide the code and the server should execute and provide me with the output.
I went through applications like Rapache but then they don't fit my requirement as they are not made to accept code from client , execute it and provide the result.
In short , i could find web application which takes input from the user , execute a specific R script and then place the output in a neatly formated way but not a web application which accepts R code ,execute it and then place it in a neat way.
A few possibilities come to mind:
- ideone provides a lot of different languages, of which, R is one of them. When you run a script, you are provided with a link that you can embed in a webpage (but which doesn't show the output, unfortunately). If you create an account, you can also store your previously run scripts.
- Pro: You can easily insert
/plain/
into your script and be able to get a URL that can be sourced directly in R. For example, if the URL for your script online is "http://ideone.com/PIkeD", then you can usesource("http://ideone.com/plain/PIkeD")
to load your script directly from the ideone servers. - Cons:
Stuck at version 2.11Might not always be the most current version of R. Presently at 3.2.2. Can't install other packages. Output doesn't show in the embed script provided.
- Pro: You can easily insert
Cloudstat console runs a more recent version of R (2.15.1) with quite a few commonly used package. It used to have a really interesting blog/notebook interface that integrated code and the output, but that doesn't seem to be available at the moment.- Pro: Useful for running something fairly straightforward in a pinch.
- Cons: Can't install other packages. Output is not formatted in code blocks, so is not easily readable. At the moment, can't save or share the code you've run.
- Pros: Pretty much all you would expect from R/RStudio. Allows you to use Sweave and R markdown to automatically create documents too. These documents can be publicly hosted too. Here's an example where I've placed a page in a public folder called "gallery": http://crunch.kmi.open.ac.uk/people/~mrdwab/gallery/howzat.html
- Cons: Sometimes the loading time is a bit slow, but as I am running RStudio desktop, I don't know how Crunch compares to running my own RStudio server.
Updated January 10, 2014
Recently, there has also been a decent amount of buzz around R-Fiddle as an interesting way to share R code. It looks like it is what powers the awesome http://www.rdocumentation.org/ site.
这篇关于语言 R 的基于网络的解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!