Is there any reason, why RSRuby can have problems with big numbers? For example with 2482187061?
Simple example:
I can confirm it with this very simple example:
require 'rsruby'
if ENV['R_HOME'].nil?
ENV['R_HOME'] = "/usr/lib/R"
end
r = RSRuby.instance
r.assign('foo',2482187061)
r.eval_R(<<-RCOMMAND)
print(foo+1)
RCOMMAND
Result:
/home/matej/.rvm/gems/ruby-1.9.2-p290/gems/rsruby-0.5.1.1/lib/rsruby.rb:148:in `lcall': bignum too big to convert into `long' (RangeError)
from /home/matej/.rvm/gems/ruby-1.9.2-p290/gems/rsruby-0.5.1.1/lib/rsruby.rb:148:in `method_missing'
from /home/matej/Programming/doschecker/doschecker_playground/rsruby_testing/issue_test.rb:9:in `<main>'
Is there any reason, why RSRuby can have problems with big numbers? For example with 2482187061?
Simple example:
I can confirm it with this very simple example:
Result:
Is there any way how to fix it?