lib/rbbt/util/R.rb in rbbt-util-5.21.96 vs lib/rbbt/util/R.rb in rbbt-util-5.21.97

- old
+ new

@@ -21,10 +21,11 @@ EOF require_sources = source.collect{|source| source = R::LIB_DIR["plot.R"] if source == :plot + source = R::LIB_DIR["svg.R"] if source == :svg "source('#{source}')" } * ";\n" if Array === source and source.any? cmd << require_sources + "\n\n" if require_sources @@ -62,10 +63,10 @@ f.puts "library(utils, quietly=TRUE);\n" f.puts "source('#{R::UTIL}');\n" f.puts f.puts script end - CMD.cmd("env R_PROFILE='#{init_file}' xterm \"$RHOME/bin/R\"") + CMD.cmd("env R_PROFILE='#{init_file}' xterm \"$R_HOME/bin/R\"") end end def self.console(script, options = {}) TmpFile.with_file do |init_file|