rinruby 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/History.txt +5 -5
- data/README.txt +1 -1
- data/lib/rinruby.rb +2 -2
- data/spec/spec_helper.rb +4 -0
- metadata +74 -81
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -1
data/.gemtest
ADDED
File without changes
|
data/History.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
=== 2.0.
|
2
|
-
|
3
|
-
*
|
4
|
-
*
|
5
|
-
*
|
1
|
+
=== 2.0.3 / 2012-07-31
|
2
|
+
* 64-bit version is in x64
|
3
|
+
* Adapt to different Rterm.exe locations. On Windows at least, Rterm.exe has moved under an i386/ folder
|
4
|
+
* Update README.txt
|
5
|
+
* Updated spec to rspec 2.0
|
6
6
|
|
7
7
|
=== 2.0.1 / 2010-05-01
|
8
8
|
* Reimplemented Rinruby.new with ordered parameters, for complete backwards compatibility
|
data/README.txt
CHANGED
@@ -18,7 +18,7 @@ Contributors: Claudio Bustos
|
|
18
18
|
== FEATURES/PROBLEMS:
|
19
19
|
|
20
20
|
* Pure Ruby. Works on Ruby 1.8.7, 1.9 and JRuby 1.4
|
21
|
-
* Slower than RSRuby, but more
|
21
|
+
* Slower than RSRuby, but more robust
|
22
22
|
|
23
23
|
== SYNOPSIS:
|
24
24
|
Below is a simple example of RinRuby usage for simple linear regression. The simulation parameters are defined in Ruby, computations are performed in R, and Ruby reports the results. In a more elaborate application, the simulation parameter might come from input from a graphical user interface, the statistical analysis might be more involved, and the results might be an HTML page or PDF report.
|
data/lib/rinruby.rb
CHANGED
@@ -62,7 +62,7 @@ class RinRuby
|
|
62
62
|
require 'socket'
|
63
63
|
|
64
64
|
|
65
|
-
VERSION = '2.0.
|
65
|
+
VERSION = '2.0.3'
|
66
66
|
|
67
67
|
|
68
68
|
attr_reader :interactive
|
@@ -93,7 +93,7 @@ class RinRuby
|
|
93
93
|
#* :port_number: This is the smallest port number on the local host that could be used to pass data between Ruby and R. The actual port number used depends on port_width.
|
94
94
|
#* :port_width: RinRuby will randomly select a uniform number between port_number and port_number + port_width - 1 (inclusive) to pass data between Ruby and R. If the randomly selected port is not available, RinRuby will continue selecting random ports until it finds one that is available. By setting port_width to 1, RinRuby will wait until port_number is available. The default port_width is 1000.
|
95
95
|
#
|
96
|
-
#
|
96
|
+
#It may be desirable to change the parameters to the instance of R, but still call it by the name of R. In that case the old instance of R which was created with the 'require "rinruby"' statement should be closed first using the quit method which is explained below. Unless the previous instance is killed, it will continue to use system resources until exiting Ruby. The following shows an example by changing the parameter echo:
|
97
97
|
#
|
98
98
|
# >> require "rinruby"
|
99
99
|
# >> R.quit
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,83 +1,82 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rinruby
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 2
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
version: 2.0.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.3
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- David Dahl
|
13
9
|
- Claudio Bustos
|
14
10
|
autorequire:
|
15
11
|
bindir: bin
|
16
|
-
cert_chain:
|
17
|
-
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
0bMy/PMIlAbqWolRn1zl2VFJ3TaXScbqImY8Wf4g62b/1ZSUlGrtnLNsCYXrWiso
|
29
|
-
UPUCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFGu9
|
30
|
-
rrJ1H64qRmNNu3Jj/Qjvh0u5MA0GCSqGSIb3DQEBBQUAA4IBAQCV0Unka5isrhZk
|
31
|
-
GjqSDqY/6hF+G2pbFcbWUpjmC8NWtAxeC+7NGV3ljd0e1SLfoyBj4gnFtFmY8qX4
|
32
|
-
K02tgSZM0eDV8TpgFpWXzK6LzHvoanuahHLZEtk/+Z885lFene+nHadkem1n9iAB
|
33
|
-
cs96JO9/JfFyuXM27wFAwmfHCmJfPF09R4VvGHRAvb8MGzSVgk2i06OJTqkBTwvv
|
34
|
-
JHJdoyw3+8bw9RJ+jLaNoQ+xu+1pQdS2bb3m7xjZpufml/m8zFCtjYM/7qgkKR8z
|
35
|
-
/ZZt8lCiKfFArppRrZayE2FVsps4X6WwBdrKTMZ0CKSXTRctbEj1BAZ67eoTvBBt
|
36
|
-
rpP0jjs0
|
37
|
-
-----END CERTIFICATE-----
|
38
|
-
|
39
|
-
date: 2011-02-03 00:00:00 -03:00
|
40
|
-
default_executable:
|
41
|
-
dependencies:
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: hoe
|
12
|
+
cert_chain: []
|
13
|
+
date: 2012-07-31 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rdoc
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3.10'
|
23
|
+
type: :development
|
44
24
|
prerelease: false
|
45
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '3.10'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: hoe
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
46
34
|
none: false
|
47
|
-
requirements:
|
48
|
-
- -
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
|
51
|
-
- 2
|
52
|
-
- 8
|
53
|
-
- 0
|
54
|
-
version: 2.8.0
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '3.0'
|
55
39
|
type: :development
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '3.0'
|
47
|
+
description: ! 'RinRuby is a Ruby library that integrates the R interpreter in Ruby,
|
48
|
+
making R''s statistical routines and graphics available within Ruby. The library
|
49
|
+
consists of a single Ruby script that is simple to install and does not require
|
50
|
+
any special compilation or installation of R. Since the library is 100% pure Ruby,
|
51
|
+
it works on a variety of operating systems, Ruby implementations, and versions of
|
52
|
+
R. RinRuby''s methods are simple, making for readable code. The {website [rinruby.ddahl.org]}[http://rinruby.ddahl.org]
|
53
|
+
describes RinRuby usage, provides comprehensive documentation, gives several examples,
|
54
|
+
and discusses RinRuby''s implementation.
|
55
|
+
|
56
|
+
|
57
|
+
|
61
58
|
Copyright 2005-2008 David B. Dahl
|
62
|
-
|
59
|
+
|
60
|
+
|
63
61
|
Developed by David B. Dahl
|
62
|
+
|
64
63
|
Documented by David B. Dahl and Scott Crawford
|
64
|
+
|
65
65
|
Homepage: http://rinruby.ddahl.org
|
66
|
-
|
67
|
-
|
68
|
-
|
66
|
+
|
67
|
+
|
68
|
+
Contributors: Claudio Bustos'
|
69
|
+
email:
|
69
70
|
- rinruby_AT_ddahl.org
|
70
71
|
- clbustos_AT_gmail.com
|
71
72
|
executables: []
|
72
|
-
|
73
73
|
extensions: []
|
74
|
-
|
75
|
-
extra_rdoc_files:
|
74
|
+
extra_rdoc_files:
|
76
75
|
- History.txt
|
77
76
|
- LICENSE.txt
|
78
77
|
- Manifest.txt
|
79
78
|
- README.txt
|
80
|
-
files:
|
79
|
+
files:
|
81
80
|
- History.txt
|
82
81
|
- LICENSE.txt
|
83
82
|
- Manifest.txt
|
@@ -87,38 +86,32 @@ files:
|
|
87
86
|
- spec/rinruby_spec.rb
|
88
87
|
- spec/spec.opts
|
89
88
|
- spec/spec_helper.rb
|
90
|
-
|
89
|
+
- .gemtest
|
91
90
|
homepage: http://rinruby.ddahl.org/
|
92
91
|
licenses: []
|
93
|
-
|
94
92
|
post_install_message:
|
95
|
-
rdoc_options:
|
93
|
+
rdoc_options:
|
96
94
|
- --main
|
97
95
|
- README.txt
|
98
|
-
require_paths:
|
96
|
+
require_paths:
|
99
97
|
- lib
|
100
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
101
99
|
none: false
|
102
|
-
requirements:
|
103
|
-
- -
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
|
106
|
-
|
107
|
-
version: "0"
|
108
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
105
|
none: false
|
110
|
-
requirements:
|
111
|
-
- -
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
|
114
|
-
- 0
|
115
|
-
version: "0"
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
116
110
|
requirements: []
|
117
|
-
|
118
111
|
rubyforge_project: rinruby
|
119
|
-
rubygems_version: 1.
|
112
|
+
rubygems_version: 1.8.24
|
120
113
|
signing_key:
|
121
114
|
specification_version: 3
|
122
|
-
summary: RinRuby is a Ruby library that integrates the R interpreter in Ruby, making
|
115
|
+
summary: RinRuby is a Ruby library that integrates the R interpreter in Ruby, making
|
116
|
+
R's statistical routines and graphics available within Ruby
|
123
117
|
test_files: []
|
124
|
-
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
UrFOR���Vz*��_L����~�c�BS
|