rstudio/dataminer: new playbook that installs deb and R packages.

This commit is contained in:
Andrea Dell'Amico 2018-11-21 16:42:52 +01:00
parent bbf118b836
commit 98fab03849
2 changed files with 9 additions and 1 deletions

View File

@ -78,6 +78,9 @@ r_plugins_packages_list:
- r-cran-spatial
- r-cran-survival
r_apt_additional_repos:
- 'ppa:opencpu/jq'
# r_plugins_list_to_install:
# - { name: 'R2WinBUGS', repo: '{{ r_cran_mirror_site }}' }
# - { name: 'R2jags', repo: '{{ r_cran_mirror_site }}' }

View File

@ -38,9 +38,14 @@
tags: [ 'r_software', 'r_profile', 'r_pkg' ]
- name: Configure the JDK environment
command: R CMD javareconf
shell: export JAVA_HOME=/usr/lib/jvm/java-8-oracle ; export J2SDKDIR=/usr/lib/jvm/java-8-oracle ; export J2REDIR=/usr/lib/jvm/java-8-oracle/jre ; R CMD javareconf
ignore_errors: True
tags: [ 'r_software', 'r_profile', 'r_pkg', 'r_java' ]
- name: Install some additional repositories. They provide dependencies for some R packages
apt_repository: repo={{ item }} state=present update_cache=yes
with_items: '{{ r_apt_additional_repos }}'
tags: [ 'r_software', 'r_apt_repo', 'r_deps' ]
- name: Install some packages needed by R packages when installed from source
apt: pkg={{ item }} state={{ r_packages_state }} update_cache=yes force=yes cache_valid_time=3600