将 R 与 Rsruby 集成 [英] integrating R with Rsruby
问题描述
我想知道是否有人有将 R 集成到 Rails 中的经验,特别是在 heroku 上.我熟悉 rsruby gem,它是 ruby 与 R 的事实上的(也许只是)绑定,但是关于将 R 与 Rails 集成的文档即使不是不存在也很少.比方说,将 R 安装到 Rails 应用程序的 lib 文件夹中并使用 rsruby 通过 Rails 访问它是否可行?
I was wondering if anyone possibly had any experience integrating R into Rails, specifically, on heroku. I am familiar with the rsruby gem, which is the de facto (perhaps only) binding that ruby has with R, but documentation on integrating R with Rails is sparse if not nonexistent. Would it be feasible to, let's say, install R into the lib folder of a Rails application and use rsruby to access it through Rails?
推荐答案
我将 Rserve 与简化界面的包装器一起使用,称为 Rserve-simple.
http://rubygems.org/gems/rserve-simple.它让我的生活更轻松.我最终经常一起使用 R 和 Ruby.
I use Rserve with a wrapper which simplifies the interface, called Rserve-simpler.
http://rubygems.org/gems/rserve-simpler . It makes my life easier. I end up using R and Ruby together quite often.
这是一个问题,我已经解释了一些用法.如何将 ts 对象传递给 R通过 RSRuby
Here is a question where I've explained some usage. How to pass a ts object to R via RSRuby
这篇关于将 R 与 Rsruby 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!