require 'rsruby'
r = RSRuby.instance # Start R instance
r.library 'gtools' # Setup gtools
r.library 'ggplot2'
r.library 'sirt'

RSRuby.set_default_mode RSRuby::NO_CONVERSION
r.assign('foo',r.matrix([1,2,3,4,5,6], :nrow => 2, :ncol =>3, :byrow => TRUE))
r.assign('fooo',r.is_matrix(r.foo))
RSRuby.set_default_mode RSRuby::NO_DEFAULT
puts 'done!'
