forked from ISTI-ansible-roles/ansible-roles
rstudio/dataminer: new playbook that installs deb and R packages.
This commit is contained in:
parent
bbf118b836
commit
98fab03849
|
@ -78,6 +78,9 @@ r_plugins_packages_list:
|
||||||
- r-cran-spatial
|
- r-cran-spatial
|
||||||
- r-cran-survival
|
- r-cran-survival
|
||||||
|
|
||||||
|
r_apt_additional_repos:
|
||||||
|
- 'ppa:opencpu/jq'
|
||||||
|
|
||||||
# r_plugins_list_to_install:
|
# r_plugins_list_to_install:
|
||||||
# - { name: 'R2WinBUGS', repo: '{{ r_cran_mirror_site }}' }
|
# - { name: 'R2WinBUGS', repo: '{{ r_cran_mirror_site }}' }
|
||||||
# - { name: 'R2jags', repo: '{{ r_cran_mirror_site }}' }
|
# - { name: 'R2jags', repo: '{{ r_cran_mirror_site }}' }
|
||||||
|
|
|
@ -38,10 +38,15 @@
|
||||||
tags: [ 'r_software', 'r_profile', 'r_pkg' ]
|
tags: [ 'r_software', 'r_profile', 'r_pkg' ]
|
||||||
|
|
||||||
- name: Configure the JDK environment
|
- 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
|
ignore_errors: True
|
||||||
tags: [ 'r_software', 'r_profile', 'r_pkg', 'r_java' ]
|
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
|
- 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
|
apt: pkg={{ item }} state={{ r_packages_state }} update_cache=yes force=yes cache_valid_time=3600
|
||||||
with_items: '{{ r_distribution_required_packages | default([]) }}'
|
with_items: '{{ r_distribution_required_packages | default([]) }}'
|
||||||
|
|
Loading…
Reference in New Issue