pbosetti-rosar 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rosar.rb +3 -1
- metadata +1 -1
data/lib/rosar.rb
CHANGED
@@ -102,7 +102,7 @@ class ROSAR
|
|
102
102
|
to move values around.
|
103
103
|
=end
|
104
104
|
def data_frame(name, df)
|
105
|
-
Thread.new do
|
105
|
+
r_thread = Thread.new do
|
106
106
|
@r.cmd "#{name}<-read.table('#{FIFO}', h=T)"
|
107
107
|
end
|
108
108
|
|
@@ -115,6 +115,8 @@ class ROSAR
|
|
115
115
|
f.puts
|
116
116
|
end
|
117
117
|
end
|
118
|
+
r_thread.join
|
119
|
+
File.delete FIFO
|
118
120
|
end
|
119
121
|
|
120
122
|
=begin rdoc
|