---
# R packages for Ocean Sampling Day workflow
# Requires R > 3.0
- hosts: rserve
  sudo: yes
  tasks:
    - name: Install R packages from CRAN
      shell: echo "options(repos=structure(c(CRAN='{{ cran_repository }}/')));if(require({{ item }})){}else{install.packages('{{ item }}')}" | /usr/bin/R --no-save
      with_items:
        - biom
        - RColorBrewer
        - vegan
        - gplots
        - calibrate
        - ape
        - picante
        - Hmisc

      notify: R changed

  handlers:
    - name: R changed
      set_fact: r_changed=True
Add R packages for OSD workflow, and make R 3.0 the default
Add R packages for OSD workflow, and make R 3.0 the default

R 3.0 is a selected version from Github that has been tested on our main
portals and works for all our workflows, and is required for some of them.
