lib/rbbt/util/R.rb in rbbt-util-5.14.3 vs lib/rbbt/util/R.rb in rbbt-util-5.14.4
- old
+ new
@@ -59,9 +59,13 @@
"#{ object }"
when String
"'#{ object }'"
when Fixnum, Float
object
+ when TrueClass
+ "TRUE"
+ when FalseClass
+ "FALSE"
when Array
"c(#{object.collect{|e| ruby2R(e) } * ", "})"
else
raise "Type of object not known: #{ object.inspect }"
end