r_bridge 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/r_bridge/r_bridge_ffi.rb +2 -0
- data/lib/r_bridge/r_bridge_lazyfunc_ext.rb +16 -0
- data/lib/r_bridge/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad1d735bada2b3edde78582804db6ed1c260663f59fb52e236adf678248b75d7
|
4
|
+
data.tar.gz: 619abe8dc2e78aa7fae3d20c68da7279a67b72a4fe934562e6ef8d613cadb14b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da62f2782de29b146aa36909f9ddf40d4135379535a5a885abb6a1e50a981218d066d9f0dc444f8e7a678f1cac85375ba3385ace6bbc48be5ad37ef5c9fc29f5
|
7
|
+
data.tar.gz: c05bc29469b5b61629ef4e0575efae12f99a665fdba8df9f23d4f8106de83aa52b3b2fc124c741de525ab9e234c4b599dded80597ebe9824ddd7f2786dd606c6
|
@@ -69,6 +69,8 @@ module RBridge
|
|
69
69
|
if(idx == val.elems.size ) # Not found
|
70
70
|
new_arg_assoc_array << [key, RBridge::r_nil()]
|
71
71
|
end
|
72
|
+
when RInstPrevious
|
73
|
+
new_arg_assoc_array << [key, result_manager.get_previous_inst_name() ]
|
72
74
|
else # R object
|
73
75
|
new_arg_assoc_array << [key, val]
|
74
76
|
end
|
@@ -166,6 +168,10 @@ module RBridge
|
|
166
168
|
end
|
167
169
|
end
|
168
170
|
|
171
|
+
class RInstPrevious
|
172
|
+
# RInstPrevious is used to obtain the previous instruction name.
|
173
|
+
end
|
174
|
+
|
169
175
|
class RResultManager
|
170
176
|
def initialize
|
171
177
|
@results = []
|
@@ -248,6 +254,16 @@ module RBridge
|
|
248
254
|
return RBridge::r_nil()
|
249
255
|
end
|
250
256
|
end
|
257
|
+
|
258
|
+
def get_previous_inst_name()
|
259
|
+
if @results.size > 0
|
260
|
+
last_inst_name = @results.last[0]
|
261
|
+
r_obj = RBridge::create_strvec([last_inst_name])
|
262
|
+
return r_obj
|
263
|
+
else
|
264
|
+
return RBridge::r_nil()
|
265
|
+
end
|
266
|
+
end
|
251
267
|
end
|
252
268
|
|
253
269
|
class RNameContainer
|
data/lib/r_bridge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r_bridge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toshihiro Umehara
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -73,7 +73,7 @@ metadata:
|
|
73
73
|
homepage_uri: https://github.com/niceume/r_bridge
|
74
74
|
source_code_uri: https://github.com/niceume/r_bridge
|
75
75
|
changelog_uri: https://github.com/niceume/r_bridge
|
76
|
-
post_install_message:
|
76
|
+
post_install_message:
|
77
77
|
rdoc_options: []
|
78
78
|
require_paths:
|
79
79
|
- lib
|
@@ -88,8 +88,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
rubygems_version: 3.
|
92
|
-
signing_key:
|
91
|
+
rubygems_version: 3.2.31
|
92
|
+
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: Enables Ruby to construct and evaluate R internal objects
|
95
95
|
test_files: []
|