R4rb 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/R4rb.gemspec +1 -1
- data/ext/R4rb/R4rb.c +6 -1
- metadata +14 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c91842f538e4ba2118bc1b284774ff00d3c09ce2561faec8c0734ced68d6b4ae
|
4
|
+
data.tar.gz: 3d7bddd32a1ec1d3dd1bcabce5ad398a3440036aa8744b4a0c4204d601083517
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3896a52935a0d5b932e4e458eb07187af2839c0a1edbfab9534d0a9d6adc0e47f5f51e00dbd7ec7a29b16c932abf0968e9bc6876c6835de3e13299eab760fde1
|
7
|
+
data.tar.gz: dbe537547e1134f8d5c0166fa7bf250749d15d66b98f0170a85cbad660c8aa6fb151f7cb143e3bee41cbb4a220efd1e603890e713a8e2cdbdd5b101f57cbcba4
|
data/R4rb.gemspec
CHANGED
data/ext/R4rb/R4rb.c
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#include <string.h>
|
8
8
|
|
9
9
|
#include "ruby.h"
|
10
|
+
#include "ruby/version.h"
|
10
11
|
#include <R.h>
|
11
12
|
#include <Rinternals.h>
|
12
13
|
#include <Rdefines.h>
|
@@ -209,7 +210,7 @@ SEXP util_eval1string(VALUE cmd)
|
|
209
210
|
|
210
211
|
int util_isVector(SEXP ans)
|
211
212
|
{
|
212
|
-
return (!isNewList(ans) & isVector(ans));
|
213
|
+
return ((!isNewList(ans)) & isVector(ans));
|
213
214
|
}
|
214
215
|
|
215
216
|
int util_isVariable(VALUE self)
|
@@ -321,7 +322,11 @@ SEXP util_VALUE2SEXP(VALUE arr)
|
|
321
322
|
for(i=0;i<n;i++) {
|
322
323
|
REAL(ans)[i]=NUM2DBL(rb_ary_entry(arr,i));
|
323
324
|
}
|
325
|
+
#if RUBY_API_VERSION_CODE >= 20400
|
326
|
+
} else if(class==rb_cInteger) {
|
327
|
+
#else
|
324
328
|
} else if(class==rb_cFixnum || class==rb_cBignum) {
|
329
|
+
#endif
|
325
330
|
PROTECT(ans=allocVector(INTSXP,n));
|
326
331
|
for(i=0;i<n;i++) {
|
327
332
|
INTEGER(ans)[i]=NUM2INT(rb_ary_entry(arr,i));
|
metadata
CHANGED
@@ -1,28 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: R4rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CQLS
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
14
|
-
R is embedded in ruby with some communication support .
|
13
|
+
description: " R is embedded in ruby with some communication support .\n"
|
15
14
|
email: rdrouilh@gmail.com
|
16
15
|
executables: []
|
17
16
|
extensions:
|
18
17
|
- ext/R4rb/extconf.rb
|
19
18
|
extra_rdoc_files: []
|
20
19
|
files:
|
21
|
-
- Rakefile
|
22
20
|
- R4rb.gemspec
|
21
|
+
- Rakefile
|
22
|
+
- ext/R4rb/MANIFEST
|
23
23
|
- ext/R4rb/R4rb.c
|
24
24
|
- ext/R4rb/extconf.rb
|
25
|
-
- ext/R4rb/MANIFEST
|
26
25
|
- lib/R2rb.rb
|
27
26
|
- lib/R4rb.rb
|
28
27
|
- lib/R4rb/R2rb_eval.rb
|
@@ -33,6 +32,9 @@ files:
|
|
33
32
|
- lib/R4rb/init.rb
|
34
33
|
- lib/R4rb/robj.rb
|
35
34
|
- lib/Rserve.rb
|
35
|
+
- script/README
|
36
|
+
- script/Rserv
|
37
|
+
- script/install_Rserv
|
36
38
|
- test/R4rbRserve.rb
|
37
39
|
- test/compR4rbRserve.rb
|
38
40
|
- test/test.rb
|
@@ -43,32 +45,28 @@ files:
|
|
43
45
|
- test/testRVect.rb
|
44
46
|
- test/testRserve.rb
|
45
47
|
- test/test_error.rb
|
46
|
-
- script/README
|
47
|
-
- script/Rserv
|
48
|
-
- script/install_Rserv
|
49
48
|
homepage: http://cqls.upmf-grenoble.fr
|
50
49
|
licenses: []
|
51
50
|
metadata: {}
|
52
|
-
post_install_message:
|
51
|
+
post_install_message:
|
53
52
|
rdoc_options: []
|
54
53
|
require_paths:
|
55
54
|
- lib
|
56
55
|
- ext/R4rb
|
57
56
|
required_ruby_version: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
|
-
- -
|
58
|
+
- - ">="
|
60
59
|
- !ruby/object:Gem::Version
|
61
60
|
version: '0'
|
62
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
62
|
requirements:
|
64
|
-
- -
|
63
|
+
- - ">="
|
65
64
|
- !ruby/object:Gem::Version
|
66
65
|
version: '0'
|
67
66
|
requirements:
|
68
67
|
- none
|
69
|
-
|
70
|
-
|
71
|
-
signing_key:
|
68
|
+
rubygems_version: 3.2.15
|
69
|
+
signing_key:
|
72
70
|
specification_version: 4
|
73
71
|
summary: R for ruby
|
74
72
|
test_files: []
|