Business intelligence made simple
Fixed anomaly detection path
Andrew Kanec9674a5b32d7
diff --git a/lib/blazer/result.rb b/lib/blazer/result.rbindex 048b0e16..9878e16a 100644--- a/lib/blazer/result.rb+++ b/lib/blazer/result.rb@@ -129,7 +129,7 @@ module Blazertimestamps = []r_script = %x[which Rscript].chompraise "R not found" if r_script.empty?- output = %x[#{r_script} --vanilla #{File.expand_path("../blazer/detect_anomalies.R", __FILE__)} #{Shellwords.escape(csv_str)}]+ output = %x[#{r_script} --vanilla #{File.expand_path("../detect_anomalies.R", __FILE__)} #{Shellwords.escape(csv_str)}]if output.empty?raise "Unknown R error"end