lib/rbundle.rb in rbundle-0.2.3 vs lib/rbundle.rb in rbundle-0.2.4

- old
+ new

@@ -34,11 +34,11 @@ def self.install_installer with_retries(args=[]) do puts "Installing devtools" command = %{ - R --vanilla --slave -e "if (! ('devtools' %in% installed.packages()[,'Package'])) install.packages(pkgs='devtools', repos=c('https://cloud.r-project.org'))" + R --vanilla --slave -e "if (! ('devtools' %in% installed.packages()[,'Package'])) install.packages(pkgs='devtools', repos=c('https://cloud.r-project.org'), quiet=F)" } puts "Executing #{command}" `#{command}` `R --slave --vanilla -e "library(devtools)"` command_inspector($?.exitstatus) @@ -47,10 +47,10 @@ def self.install(dependency) with_retries(args = [dependency]) do |dependency| puts "Installing #{dependency['package']}" command = %{ - R --slave --vanilla -e "options(warn=2); library(devtools); if ((!'#{dependency['package']}' %in% installed.packages()[,'Package']) || packageVersion('#{dependency['package']}') < '#{dependency['version']}') install_version('#{dependency['package']}', version='#{dependency['version']}', repos=c('https://cloud.r-project.org'))" + R --slave --vanilla -e "options(warn=2); library(devtools); if ((!'#{dependency['package']}' %in% installed.packages()[,'Package']) || packageVersion('#{dependency['package']}') < '#{dependency['version']}') install_version('#{dependency['package']}', version='#{dependency['version']}', repos=c('https://cloud.r-project.org'), quiet=F)" } puts "Executing #{command}" `#{command}` command_inspector($?.exitstatus) end \ No newline at end of file