Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Nobody
RE: RSRuby and IRB [ reply ]  
2006-11-14 00:45
Hi Anders,

I'm afraid the signal handling in RSRuby is broken at the moment, but it is number one on my To Do list. One of the effects of this is that the graphics window doesn't update properly. Hopefully this won't be too difficult to fix once I have time to look at it.

BTW I wasn't previously aware of the dev.off() workaround so thanks for that!

Alex

By: Anders Jacobsen
RSRuby and IRB [ reply ]  
2006-11-13 11:52
Great package! Im currently testing RSRuby in IRB as an alternative to the R commandline shell. So far it works just fine. One thing I found though is that I need to manually kill the R Graphics window after a plot with dev.off() - I cannot update the window with new plots or kill the window with a mouse click ... Is there a better way to this?

~> irb
irb(main):001:0> require 'rsruby'
=> true
irb(main):002:0> r = RSRuby.instance
=> #<RSRuby:0x2aaaab4d19a8>
irb(main):003:0> norm = r.rnorm(10)
=> [-0.385296940114836, -2.45939651969993, 0.686344756298968, -0.490822970963267, 0.526699048827411, -0.975180045291646, 0.766044172835698, 1.33897788541033, 1.2103420419014, -0.40338127474738]
irb(main):004:0> r.plot({:x => norm,:ylab => "Test"})
=> nil
irb(main):005:0> r.eval_R("dev.off()")
=> {"null device"=>1}
irb(main):006:0>