Sha256: bbed6fcc0e9bc2f24c308557bf70cf69cc7d5ff90cc0a45ae7a33f0883a44a9b
Contents?: true
Size: 707 Bytes
Versions: 2
Compression:
Stored size: 707 Bytes
Contents
require File.expand_path(File.dirname(__FILE__)+"/spec_helper.rb") describe "Bug #1 on statsample" do before do @r=Rserve::Connection.new() end after do @r.close if @r.connected? end it "should return a correct irr object" do @r.void_eval(" install.packages('irr'); library(irr); ds<-data.frame(a=rnorm(100),b=rnorm(100),c=rnorm(100),d=rnorm(100)); iccs=list( icc_1=icc(ds,'o','c','s'), icc_k=icc(ds,'o','c','a'), icc_c_1=icc(ds,'t','c','s'), icc_c_k=icc(ds,'t','c','a'), icc_a_1=icc(ds,'t','a','s'), icc_a_k=icc(ds,'t','a','a')) ") @iccs=@r.eval('iccs').to_ruby @iccs.should be_instance_of(Array) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rserve-client-0.3.3 | spec/rserve_bug_1_spec.rb |
rserve-client-0.3.2 | spec/rserve_bug_1_spec.rb |