# R and Ruby

**URL:** <https://www.ruby-forum.com/t/r-and-ruby/95017>\
**Category:** Ruby\
**Created:** [May 19, 2006, 11:28am UTC](https://www.ruby-forum.com/t/r-and-ruby/95017 "2006-05-19T11:28:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oscar-alexander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e36b37/32.png) [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Post date:** [May 19, 2006, 11:28am UTC](https://www.ruby-forum.com/t/r-and-ruby/95017/1 "2006-05-19T11:28:33Z")

</div>

Hello everyone,

I’m releasing the latest version of my R\<-\>Ruby code called RSRuby.  
Writing it has scratched an itch that I’ve had for a while, and  
although it’s still a while away from being feature complete or bug  
free, I probably won’t be able to spend too much more time on it. So  
if anyone else wants to take the code and add it to their project  
then they’re very welcome. It’s basically a port of the RSPerl module  
(or part of it anyway), hence the RSRuby name. I’ve only tested it  
with R though, so I have no idea whether it runs with S. I’ve tested  
it on Linux (Ubuntu) and OS X, but I have no idea whether it’s  
possible to get it running under Windows (I sort of doubt it!).  
Please be aware that the installation procedure requires you to  
install the Ruby code AND some R code separately. The README file  
should hopefully explain it. Without the R code installed RSRuby  
won’t load.

You can download the tar.gz here:

[http://web.kuicr.kyoto-u.ac.jp/~alexg/files/rsruby.0.1.tar.gz](http://web.kuicr.kyoto-u.ac.jp/~alexg/files/rsruby.0.1.tar.gz)

And some (very basic) docs can be found here:

[http://web.kuicr.kyoto-u.ac.jp/~alexg/rsruby/](http://web.kuicr.kyoto-u.ac.jp/~alexg/rsruby/)

It’s been a good exercise for me in learning the Ruby C API (which I  
can confirm is a lot nicer than Perl’s!), so if anyone finds it  
useful/interesting then that’s a bonus as far as I’m concerned.

Sample code:

require ‘RSRuby/rsruby’

r = RSRuby.new  
normal\_data = r.rnorm(100)  
r.plot({:x =\> normal\_data, :xlab =\> ‘Test’})  
sleep(2)

Dr Alex G.  
Post-Doctoral Researcher

Bioinformatics Center  
Institute for Chemical Research  
Kyoto University  
Gokasho, Uji, Kyoto 611-0011  
Japan

---

<div class="post-metadata">

**Author:** ![oscar-alexander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e36b37/32.png) [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Post date:** [May 20, 2006, 4:30am UTC](https://www.ruby-forum.com/t/r-and-ruby/95017/2 "2006-05-20T04:30:55Z")

</div>

You might want to submit this to the Comprehensive R Archive Network  
(CRAN).

Alex G. wrote:

> Linux (Ubuntu) and OS X, but I have no idea whether it’s possible to
> 
> r = RSRuby.new  
> Gokasho, Uji, Kyoto 611-0011  
> Japan

–  
M. Edward (Ed) Borasky

> **[世界杯竞猜彩票-世界杯官网竞猜（集团）有限公司](http://www.linuxcapacityplanning.com/)**
>
> 世界杯竞猜彩票一直以来遵守商业道德，世界杯官网竞猜坚持诚信为本，保证诚实经营。世界杯竞猜彩票先后成为安徽省电子商务协会理事单位、安徽省网商协会会员单位、合肥市电子商务协会理事单位、合肥市服务外包行业协会会员单位、安徽省云计算产业促进会会员单位。世界杯官网竞猜一直保持良好的技术及服务态度，更好地为客户服务。
