rbundle 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rbundle/version.rb +1 -1
- data/lib/rbundle.rb +4 -9
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 57b213d25d4df9a0b58b64b0c89e233dbbf297cc16f49c7317a4ce5226979a7d
|
|
4
|
+
data.tar.gz: 56c5af8b345cb1776ce6abd5f30370a76b9949801ab3581be8cbafe251135f5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 537ea3cc0a5849e56082c03210398af53d87e4018ab4ae238ce83bd7c3c45d12e5281a2518e602df194ffb5378f747713a26ddb1119667da52af7aa0f422b394
|
|
7
|
+
data.tar.gz: 83108230e46acee09243803124d9e3b2fbda05446ae6972a9e7a52a56be2b455084bf6d77273921fd8f4406e680982ed54d36e9779d36c7dd454e9eb3df5e938
|
data/lib/rbundle/version.rb
CHANGED
data/lib/rbundle.rb
CHANGED
|
@@ -17,11 +17,6 @@ def with_retries(retries = 3, back_off = 60, args, &block)
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
class RBundler
|
|
20
|
-
# Pin devtools to a known-good version. Newer/unbounded devtools releases
|
|
21
|
-
# change how packages are installed and break install_version against the
|
|
22
|
-
# latest R, so we freeze the installer to this version.
|
|
23
|
-
DEVTOOLS_VERSION = '2.4.5'
|
|
24
|
-
|
|
25
20
|
def self.bundle(parallels)
|
|
26
21
|
install_installer(parallels)
|
|
27
22
|
self.read_requirements.each {|d| install(d, parallels)}
|
|
@@ -39,13 +34,13 @@ class RBundler
|
|
|
39
34
|
|
|
40
35
|
def self.install_installer(parallels)
|
|
41
36
|
with_retries(args=[parallels]) do |parallels|
|
|
42
|
-
puts "Installing
|
|
37
|
+
puts "Installing remotes"
|
|
43
38
|
command = %{
|
|
44
|
-
R --vanilla --slave -e "options("Ncpus=#{parallels}L"); if (! ('remotes' %in% installed.packages()[,'Package'])) install.packages(pkgs='remotes', repos=c('https://cloud.r-project.org'), INSTALL_opts=c('--no-docs'), quiet=F)
|
|
39
|
+
R --vanilla --slave -e "options("Ncpus=#{parallels}L"); if (! ('remotes' %in% installed.packages()[,'Package'])) install.packages(pkgs='remotes', repos=c('https://cloud.r-project.org'), INSTALL_opts=c('--no-docs'), quiet=F)"
|
|
45
40
|
}
|
|
46
41
|
puts "Executing #{command}"
|
|
47
42
|
`#{command}`
|
|
48
|
-
`R --slave --vanilla -e "library(
|
|
43
|
+
`R --slave --vanilla -e "library(remotes)"`
|
|
49
44
|
command_inspector($?.exitstatus)
|
|
50
45
|
end
|
|
51
46
|
end
|
|
@@ -54,7 +49,7 @@ class RBundler
|
|
|
54
49
|
with_retries(args = [dependency, parallels]) do |dependency, parallels|
|
|
55
50
|
puts "Installing #{dependency['package']}"
|
|
56
51
|
command = %{
|
|
57
|
-
R --slave --vanilla -e "options(warn=2); options("Ncpus=#{parallels}L"); library(
|
|
52
|
+
R --slave --vanilla -e "options(warn=2); options("Ncpus=#{parallels}L"); library(remotes); 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'), upgrade='never', quiet=F)"
|
|
58
53
|
}
|
|
59
54
|
puts "Executing #{command}"
|
|
60
55
|
`#{command}`
|