通过 RApache 安装 R Web 应用程序的最简单方法是什么?
我使用 Windows XP 和 R 作为桌面使用。以及一个满足我的网络托管需求的共享托管帐户(在某家公司)。
我希望创建一个 R Web 应用程序,并且我知道其中一种方法是通过 RApache 将 R 与 Apache 结合使用 ,但由于我当前的共享托管计划不允许我安装 RApache,我有点卡住了。
那么......(这是我的问题)最简单/最快/最具成本效益的开始方式是什么?
购买更昂贵的托管套餐?
我自己主持这件事? (在 Windows 上?!)
切换到其他允许使用 RApache 的托管公司?
任何建议都会非常有帮助。
I use windows XP and R for my desktop use. And a shared hosting account (at some company) for my web hosting needs.
I wish to create an R web application and I understand that one such way is by using R with Apache through RApache , but since my current shared hosting plan doesn't allow me to install RApache I am a bit stuck.
So... (and here's my question) what would be the easiest/fastest/cost-effective way to get started?
Buying a more expensive hosting package ?
Hosting the thing myself? (on windows ?!)
switch to some other hosting company that permits the use of RApache?
Any suggestion will be most helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您坚持使用 RApache,那么自托管是一个选择。这可能比您想象的要容易。这是我一个月前读过的博客文章的链接我决定购买硬件并服务器我自己的文件。我刚刚观看了这个七分钟的 YouTube 视频教程,标题为“R Web 应用程序 – 使用 RApache 的“Hello World”” 我相信这是今天刚刚发布的。
在七分钟内,作者逐步介绍了使用 RApache 构建一个“hello world”站点,然后介绍了一个更雄心勃勃的示例,构建一个用户输入表单来收集输入,然后将它们传递给特定的 R 函数——几乎是一个示例性的片段我怀疑大多数人都想使用 RApache。
第二种选择是使用网络框架。我在这里的推荐是 Django。为什么?它是用 Python 编写的,因此您可以通过 python 绑定 (RPy2) 访问 R 功能。其次,如果您不是经验丰富的 Web 开发人员,Django 在很多方面都是一个很棒的框架,因为它确实是一个“全栈”解决方案——它或多或少是开箱即用的。此外,还有大量且不断增长的高质量分步教程、代码片段,甚至打包的 django 站点可供学习。
Self-hosting is an option if you insist on using RApache. This might be easier than you think. Here's a link to a blog post i read a month ago before i decided to buy the hardware and server my own files. i just watched this seven minute YouTube video tutorial entitled "R Web Application–'Hello World' using RApache" I believe this was just posted today.
In seven minutes, the author walks through building a "hello world" Site using RApache then walks through a more ambitious example, building a user-input form to collect inputs then deliver them to a particular R function--pretty much a exemplary slice of what i suspect most people would want to use RApache for.
A second option is using a web framework. My recommendation here is Django. Why? It's written in Python so you can access R functionality via the python bindings (RPy2). Second, if you are not an experienced web developer, Django is in many ways, a great framework to begin with because it's truly a "full-stack" solution--it works more or less out of the box. In addition, there is a substantial and growing body of quality step-by-setp tutorials, code snippets, and even packaged django Sites, to learn from.
他们似乎提供了一个 VMWare 映像来快速启动和运行。
我建议您下载 VMWare 播放器并尝试该映像。由于 RApache 不适用于 Windows,我想这是最简单的方法。我不会使用它来托管,但我会首先尝试这个堆栈是否真的适合您的应用程序。此外,这还允许您在本地进行测试。
it seems they provide a VMWare image to get up and running quickly.
I suggest you download VMWare player and try the image. Since RApache isn't available for Windows, this is the most simple way, I guess. I wouldn't use that for hosting, but I would first try whether this stack is actually the right thing for your app. Also, this allows you testing things locally.
道格,
我是否应该阅读您的建议,说 Django 应用程序可以在没有 RApache 的情况下调用 RPy2 功能?如果是这样,对于无法安装 RAPache 模块的共享主机用户来说,这听起来像是一个解决方案。
Doug,
Should I read your suggestion as saying that a Django app can call the RPy2 functionality without RApache? If so, that sounds like a solution for folks on shared hosting who can't install the RAPache module.