Skip to content

Instantly share code, notes, and snippets.

@jorisbontje
Created May 5, 2013 19:26
Show Gist options
  • Save jorisbontje/5521891 to your computer and use it in GitHub Desktop.
Save jorisbontje/5521891 to your computer and use it in GitHub Desktop.
---
- name: Install R
yum: name=$item state=installed
environment: $proxy_env
with_items:
- R
tags:
- packages
- name: Copy R package installer script
copy: src=R/files/install_R_package.R dest=/tmp/
tags:
- R_packages
- name: Install R packages
command: Rscript /tmp/install_R_package.R $item creates=/usr/lib64/R/library/$item
environment: $proxy_env
with_items: $R_packages
tags:
- R_packages
- name: Download rmr2
get_url: url=https://github.com/RevolutionAnalytics/rmr2/raw/master/build/rmr2_2.1.0.tar.gz dest=/tmp/
environment: $proxy_env
tags:
- rmr2
- name: Install rmr2
command: R CMD INSTALL /tmp/rmr2_2.1.0.tar.gz creates=/usr/lib64/R/library/rmr2
tags:
- rmr2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment