forked from ISTI-ansible-roles/ansible-roles
library/roles/R/tasks/r-installation.yml: Fix the task that installs packages from github.
This commit is contained in:
parent
2e766d138f
commit
48d6148d2e
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue