From f00b9f12cf9dbf40eaf3d55881e50acf53776013 Mon Sep 17 00:00:00 2001 From: davor Date: Wed, 30 Nov 2011 12:16:33 +0100 Subject: Updated ruby-plot version to 0.6.0 --- report/environment.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'report/environment.rb') diff --git a/report/environment.rb b/report/environment.rb index 72320a0..34554f7 100755 --- a/report/environment.rb +++ b/report/environment.rb @@ -1,10 +1,9 @@ - ['rubygems', 'logger', 'fileutils', 'sinatra', 'sinatra/url_for', 'rest_client', 'yaml', 'fileutils', 'mime/types', 'abbrev', 'rexml/document', 'ruby-plot', 'opentox-ruby' ].each do |g| require g end -gem 'ruby-plot', "~>0.5.0" +gem 'ruby-plot', "~>0.6.0" module Reports end -- cgit v1.2.3 From 63320057e2a2b2121c5c405c31e2e7b709fa9e44 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Tue, 31 Jan 2012 12:37:36 +0100 Subject: adapt validation to r-util (split), add new r plots --- report/environment.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'report/environment.rb') diff --git a/report/environment.rb b/report/environment.rb index 34554f7..7addc45 100755 --- a/report/environment.rb +++ b/report/environment.rb @@ -6,6 +6,19 @@ end gem 'ruby-plot', "~>0.6.0" module Reports + + def self.r_util + @@r_util = OpenTox::RUtil.new unless defined?@@r_util and @@r_util + @@r_util + end + + def self.quit_r + if defined?@@r_util and @@r_util + @@r_util.quit_r + @@r_util = nil + end + end + end require "lib/ot_predictions.rb" -- cgit v1.2.3