From e7fa165d38887ecb9b4a393de274bb664c199b94 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 1 Mar 2016 18:00:52 +0100 Subject: [PATCH] library/roles/R/tasks/r-installation.yml: Remove the check that would skip the repetition of some tasks. It is not working. --- R/tasks/r-installation.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/R/tasks/r-installation.yml b/R/tasks/r-installation.yml index 60e1b68b..cc15266c 100644 --- a/R/tasks/r-installation.yml +++ b/R/tasks/r-installation.yml @@ -65,7 +65,7 @@ when: r_plugins_install_specific_source tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_version' ] -- name: Install R packages from the cran sources, specific versions. First try +- name: Install R packages from the cran sources, specific versions. First round command: > Rscript --slave --no-save --no-restore-history -e "if (! ('{{ item.name }}' %in% installed.packages()[,'Package'])) { install.packages('{{ r_source_plugins_dest_dir }}/{{ item.source }}', repos = NULL, type='source'); print('Added'); } else if (packageVersion('{{ item.name }}') != '{{ item.version }}') { install.packages('{{ r_source_plugins_dest_dir }}/{{ item.source }}', repos = NULL, type='source'); print('Added'); } else { print('Already Installed'); }" register: install_s_plugins_result @@ -85,7 +85,6 @@ with_items: '{{ r_plugins_from_sources }}' when: - r_plugins_install_specific_source - - "install_s_plugins_result.rc != 0 or 'had non-zero exit status' in install_s_plugins_result.stderr" tags: [ 'r_software', 'r_pkg', 'r_plugins', 'r_plugins_version' ] - name: Install R packages from the cran sources repo, latest available version. Second try @@ -97,7 +96,6 @@ with_items: '{{ r_plugins_list_to_install }}' when: - r_plugins_install_latest_source - - "install_plugins_result.rc != 0 or 'had non-zero exit status' in install_plugins_result.stderr" tags: [ 'r_software', 'r_pkg', 'r_plugins' ] - name: Install R packages from github