rosar 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/lib/rosar.rb +15 -2
  3. data/test/rtest.rb +1 -1
  4. metadata +7 -12
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cb8f7e019e8958688cc51494734e3713905ee934
4
+ data.tar.gz: 7427a4c41839fb632c67d74762e37bd7b01e1bb0
5
+ SHA512:
6
+ metadata.gz: 4830b262e193d6f458cacad103b8651189626da4e79c0eff11020fad4f5feea8f0a66dd62f62bcab59bec3f24a3906c045f8b11c600b618a1e340a6c1165dbc3
7
+ data.tar.gz: 79d2cc1dc6a23dad2d8ca640dacc17b77ecab02c430d5f127bc5e1383d21a7e2fd6a352a9c3af012cb824f448b219977a01656645caffd4fcee7cad16fe62140
@@ -60,8 +60,21 @@ class ROSAR
60
60
  EXCHANGE = "rosar.exc"
61
61
  attr_reader :r, :console
62
62
 
63
- def initialize(r="R64")
64
- @r = OSA.app r
63
+ @@r = "" # command line to launch R
64
+ def self.r= r_com
65
+ @@r = r_com
66
+ end
67
+
68
+ def initialize(r="R")
69
+
70
+ r = @@r unless @@r.empty?
71
+ begin
72
+ @r = OSA.app r
73
+ rescue
74
+ raise "Specify a valid command line to launch R-lang"
75
+ exit
76
+ end
77
+
65
78
  self.sync_dir
66
79
  self.activate
67
80
  # @console = @r.windows.select {|w| w.name =="R Console"}[0]
@@ -5,7 +5,7 @@
5
5
  # reserved.
6
6
 
7
7
  require '../lib/rosar'
8
-
8
+ ROSAR.r = "R"
9
9
  r = ROSAR.instance
10
10
  df = {:x => (0..4).to_a,:y => [7,2,5.5,8,9,10]}
11
11
  cols = %w(red green blue darkred darkgreen darkblue)
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rosar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Paolo Bosetti
@@ -14,17 +13,15 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rubyosa19
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.6.2
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.6.2
30
27
  description: Ruby/GNU-R interface that uses OSA under OS X, compatible with Ruby 1.9.x.
@@ -38,6 +35,7 @@ files:
38
35
  - test/rtest.rb
39
36
  homepage: http://github.com/pbosetti/rosar
40
37
  licenses: []
38
+ metadata: {}
41
39
  post_install_message:
42
40
  rdoc_options:
43
41
  - --inline-source
@@ -45,22 +43,19 @@ rdoc_options:
45
43
  require_paths:
46
44
  - lib
47
45
  required_ruby_version: !ruby/object:Gem::Requirement
48
- none: false
49
46
  requirements:
50
- - - ! '>='
47
+ - - '>='
51
48
  - !ruby/object:Gem::Version
52
49
  version: '0'
53
50
  required_rubygems_version: !ruby/object:Gem::Requirement
54
- none: false
55
51
  requirements:
56
- - - ! '>='
52
+ - - '>='
57
53
  - !ruby/object:Gem::Version
58
54
  version: '0'
59
55
  requirements: []
60
56
  rubyforge_project: rosar
61
- rubygems_version: 1.8.24
57
+ rubygems_version: 2.0.3
62
58
  signing_key:
63
59
  specification_version: 2
64
60
  summary: Ruby/GNU-R interface that uses OSA under OS X.
65
61
  test_files: []
66
- has_rdoc: true