This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1748
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-1748 by this push:
new 7e35bde [DLAB-1748]: fixed error R in pkg install
7e35bde is described below
commit 7e35bde4a1502ab1b11885fcdc3eb914982e69d1
Author: leonidfrolov <[email protected]>
AuthorDate: Fri Jul 17 09:31:01 2020 +0300
[DLAB-1748]: fixed error R in pkg install
---
infrastructure-provisioning/src/general/lib/os/fab.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py
b/infrastructure-provisioning/src/general/lib/os/fab.py
index 15671eb..ede6a24 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -425,7 +425,7 @@ def install_r_pkg(requisites):
run('sudo -i R -e \'devtools::install_version("{0}", version =
{1}, repos = "http://cran.us.r-project.org", dep=TRUE)\' 2>&1 | '
'tee /tmp/tee.tmp; if ! grep -w -E "({2})"
/tmp/tee.tmp > /tmp/install_{0}.log; then echo "" >
/tmp/install_{0}.log;fi'.format(name, vers, error_parser))
else:
- sudo('R -e \'devtools::install_version("{0}", version = "{1}",
repos = "https://cloud.r-project.org", dep=TRUE)\' 2>&1 | '
+ sudo('R -e \'devtools::install_version("{0}", version = {1},
repos = "https://cloud.r-project.org", dep=TRUE)\' 2>&1 | '
'tee /tmp/tee.tmp; if ! grep -w -E "({2})"
/tmp/tee.tmp > /tmp/install_{0}.log; then echo "" >
/tmp/install_{0}.log;fi'.format(name, vers, error_parser))
dep = sudo('grep "(NA" /tmp/tee.tmp | awk \'{print
$1}\'').replace('\r\n', ' ')
dep_ver = sudo('grep "(NA" /tmp/tee.tmp | awk \'{print
$4}\'').replace('\r\n', ' ').replace(')', '').split(' ')
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]