Last Updated: February 25, 2016
·
2.553K
· bcoca

Install R packages with Ansible

Some times there is no OS package for the R package, then most people do it by hand, but I like to put it all in a playbook:

- name: Install R packages
  shell: echo "library.install(c('${item}')"| R --slave --no-save --no-restore-history
  with_items:
      - rcranrandompackage