Skip to content

Instantly share code, notes, and snippets.

@lokeshh
Created June 7, 2016 20:00
Show Gist options
  • Select an option

  • Save lokeshh/b967188e661cf45a3242dd20991ebcd9 to your computer and use it in GitHub Desktop.

Select an option

Save lokeshh/b967188e661cf45a3242dd20991ebcd9 to your computer and use it in GitHub Desktop.
lokeshh:~/workspace/daru (rake_task) $ rspec spec/ -r ./formatter.rb -f SimpleFormatter
Rserve: no process found
/usr/lib/R/bin/Rcmd: 62: exec: Rserve: not found
Rserve: no process found
/usr/lib/R/bin/Rcmd: 62: exec: Rserve: not found
Failures:
1) Daru rserve extension Daru::Vector#to_REXP converts to and from R data
Got 0 failures and 2 other errors:
1.1) Failure/Error: @r = Rserve::Connection.new
Rserve::Connection::RserveNotStartedError:
Can't start Rserve
# /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rserve-client-0.3.1/lib/rserve/connection.rb:83:in `rescue in initialize'
# /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rserve-client-0.3.1/lib/rserve/connection.rb:66:in `initialize'
# ./spec/extensions/rserve_spec.rb:7:in `new'
# ./spec/extensions/rserve_spec.rb:7:in `block (2 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# Errno::ECONNREFUSED:
# Connection refused - connect(2) for "127.0.0.1" port 6311
# /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rserve-client-0.3.1/lib/rserve/connection.rb:104:in `initialize'
1.2) Failure/Error: @r.close
NoMethodError:
undefined method `close' for nil:NilClass
Did you mean? clone
# ./spec/extensions/rserve_spec.rb:11:in `block (2 levels) in <top (required)>'
2) Daru rserve extension Daru::DataFrame#to_REXP converts to and from R data
Got 0 failures and 2 other errors:
2.1) Failure/Error: @r = Rserve::Connection.new
Rserve::Connection::RserveNotStartedError:
Can't start Rserve
# /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rserve-client-0.3.1/lib/rserve/connection.rb:83:in `rescue in initialize'
# /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rserve-client-0.3.1/lib/rserve/connection.rb:66:in `initialize'
# ./spec/extensions/rserve_spec.rb:7:in `new'
# ./spec/extensions/rserve_spec.rb:7:in `block (2 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# Errno::ECONNREFUSED:
# Connection refused - connect(2) for "127.0.0.1" port 6311
# /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rserve-client-0.3.1/lib/rserve/connection.rb:104:in `initialize'
2.2) Failure/Error: @r.close
NoMethodError:
undefined method `close' for nil:NilClass
Did you mean? clone
# ./spec/extensions/rserve_spec.rb:11:in `block (2 levels) in <top (required)>'
Finished in 2.32 seconds (files took 6.85 seconds to load)
1165 examples, 2 failures, 19 pending
Failed examples:
rspec ./spec/extensions/rserve_spec.rb:16 # Daru rserve extension Daru::Vector#to_REXP converts to and from R data
rspec ./spec/extensions/rserve_spec.rb:30 # Daru rserve extension Daru::DataFrame#to_REXP converts to and from R data
Coverage report generated for RSpec to /home/ubuntu/workspace/daru/coverage. 2755 / 2808 LOC (98.11%) covered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment