From 48d6148d2e00468c9555c1b31d807e7032dccbca Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 2 Nov 2016 17:01:17 +0100 Subject: [PATCH] library/roles/R/tasks/r-installation.yml: Fix the task that installs packages from github. --- R/tasks/r-installation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/tasks/r-installation.yml b/R/tasks/r-installation.yml index 93af5b35..c87ec145 100644 --- a/R/tasks/r-installation.yml +++ b/R/tasks/r-installation.yml @@ -94,7 +94,7 @@ - name: Install R packages from github command: > - Rscript --slave --no-save --no-restore-history -e "if (! ('{{ item.plugin_name }}' %in% installed.packages()[,'Package'])) { require(devtools); require(methods) ; options(repos='{{ r_cran_mirror_site }}/') ; install_github('{{ item.plugin_name }}', '{{ item.github_user }}'); print('Added'); } else { print('Already Installed'); }" + Rscript --slave --no-save --no-restore-history -e "if (! ('{{ item.plugin_name }}' %in% installed.packages()[,'Package'])) { require(devtools); require(methods) ; options(repos='{{ r_cran_mirror_site }}/') ; install_github('{{ item.github_user }}/{{ item.plugin_name }}'); print('Added'); } else { print('Already Installed'); }" register: install_github_plugins_result failed_when: "install_github_plugins_result.rc != 0 or 'had non-zero exit status' in install_github_plugins_result.stderr" changed_when: "'Added' in install_github_plugins_result.stdout"