Friday, February 11, 2011

Ruby :: rsruby

On MAC OS

$ sudo gem install rsruby -- --with-R-home=/usr/lib/R --with-R-include=/usr/share/R/include --with-R-dir=/Library/Frameworks/R.framework/Resources/

After installation setup the R_HOME global variable

export R_HOME=/usr/bin/R


At IRB

>> require 'rsruby'
=> true
>> RSRuby.instance
cannot find system Renviron
Fatal error: unable to open the base package