问题描述
我怀疑这是问这个问题的正确地方,但我想知道是否有一个介绍在 R 中开发 Web 应用程序的好地方.我知道人们正在这样做,我知道在哪里可以找到RApache 和 brew 但任何类型的演练?
I doubt this is the right place to ask the question, but I was wondering if there is a good place for an introduction to developing web apps in R. I know people are doing it and I know about where to find out about RApache and brew but any kind of walkthrough?
在我自己开始之前检查一下.
Just checking before I start on my own.
推荐答案
几年后的更新:
使用什么技术将 R 集成到网络应用程序取决于您尝试完成的工作的规模.
What technology to use for integrating R into web apps depends upon the scale of what you are trying to accomplish.
对于小型、独立的网络应用程序,Shiny 正在迅速成为事实上的标准.它相对易于使用,并且有付费支持选项.
For small, standalone web apps, Shiny is fast becoming the de facto standard. It is relatively easy to use, and there are paid support options.
对于较大的项目,您可能最好使用您熟悉的任何 Web 框架,然后弄清楚如何连接到 R.(您可以从命令行或多或少的任何其他软件中调用 R,还有一些更好的 R 接口,例如用于 Java 应用程序的 rJava
.)这听起来有点模糊,但对于此类项目,重要的决定是基于贵公司已经使用了什么?"和你需要 R 做什么?"
For bigger projects, you are probably better off using whatever web framework you are comfortable with and then figuring out how to connect to R. (You can call R from the command line from any more-or-less any other software, and there are some slightly nicer interfaces to R such as rJava
for Java apps.) This sounds a little vague, but for such projects the important decisions are based on "what does your company already use?" and "what do you need R for?"
原答案:
使用 R 创建 Web 应用程序有很多不同的方法.大多数(如果不是全部)都列在 R 文档常见问题.
There are lots of different ways of creating a web app with R. Most (if not all) are listed in the FAQ on R document.
如果你想使用 RApache,有一个演示文稿 在旧的 RApache 站点上,这可能对您入门有用.否则,RWui 使用起来非常简单,但不够灵活(最后无论如何,我使用它的时间),并且 rcom/StatConnector 可用于从您的网络服务器.
If you want to use RApache, there's a presentation on the old RApache site that might be useful to get you started. Otherwise, RWui is very simple to use, but not so flexible (last time I used it, anyway), and rcom/StatConnector can be used to run R from your web server.
这篇关于R网络应用介绍的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!