lib/rbbt/util/R.rb in rbbt-util-5.21.81 vs lib/rbbt/util/R.rb in rbbt-util-5.21.83
- old
+ new
@@ -119,10 +119,10 @@
when FalseClass
"FALSE"
when Array
"c(#{object.collect{|e| ruby2R(e) } * ", "})"
when Hash
- object.collect{|k,v| [k, ruby2R(v)] * "="} * ", "
+ "list(" << object.collect{|k,v| [k, ruby2R(v)] * "="} * ", " << ")"
else
raise "Type of object not known: #{ object.inspect }"
end
end