lib/rbundle.rb in rbundle-0.2.7 vs lib/rbundle.rb in rbundle-0.2.8
- old
+ new
@@ -34,11 +34,11 @@
def self.install_installer(parallels)
with_retries(args=[parallels]) do |parallels|
puts "Installing devtools"
command = %{
- R --vanilla --slave -e "options("Ncpus=#{parallels}L"); if (! ('devtools' %in% installed.packages()[,'Package'])) install.packages(pkgs='devtools', repos=c('https://cloud.r-project.org'), quiet=F)"
+ R --vanilla --slave -e "options("Ncpus=#{parallels}L"); if (! ('devtools' %in% installed.packages()[,'Package'])) install.packages(pkgs='devtools', repos=c('https://cloud.r-project.org'), INSTALL_opts=c('--no-docs'), quiet=F)"
}
puts "Executing #{command}"
`#{command}`
`R --slave --vanilla -e "library(devtools)"`
command_inspector($?.exitstatus)
@@ -47,10 +47,10 @@
def self.install(dependency, parallels)
with_retries(args = [dependency, parallels]) do |dependency, parallels|
puts "Installing #{dependency['package']}"
command = %{
- R --slave --vanilla -e "options(warn=2); options("Ncpus=#{parallels}L"); 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)"
+ R --slave --vanilla -e "options(warn=2); options("Ncpus=#{parallels}L"); 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'), INSTALL_opts=c('--no-docs'), quiet=F)"
}
puts "Executing #{command}"
`#{command}`
command_inspector($?.exitstatus)
end
\ No newline at end of file