Oefenweb.latest_r

R

CI Ansible Galaxy

This guide helps you install the latest version of R on Ubuntu systems.

Requirements

  • littler (will be installed)
  • bash (not installed)
  • software-properties-common (will be installed)
  • dirmngr (will be installed)
  • apt-transport-https (will be installed)

Variables

  • r_version: [default: 34, 35 for Ubuntu >= 18.04, 40 for Ubuntu >= 20.04]: Which version of R to install

  • r_cran_mirror: [default: https://cran.rstudio.com/]: Your preferred CRAN mirror

  • r_bioclite_url: [default: https://bioconductor.org/biocLite.R]: The URL for the biocLite.R script for installing Bioconductor

  • r_install_dev: [default: false]: Install the r-base-dev package or not

  • r_install: [default: ['littler']]: Additional packages to install (e.g. r-recommended)

  • r_packages_lib: [default: /usr/local/lib/R/site-library]: Directory where packages will be installed

  • r_packages_repos: [default: "{{ r_cran_mirror }}"]: URL for installing packages

  • r_packages: [default: []]: Packages to install or remove

    • r_packages.{n}.name: [required]: Package name
    • r_packages.{n}.state: [optional, default: present]: Package state (e.g. updated, absent)
    • r_packages.{n}.type: [optional, default: cran]: Package type (e.g. bioconductor)
    • r_packages.{n}.lib: [optional, default: r_packages_lib]: Directory for package installation
    • r_packages.{n}.repos: [optional, default: r_packages_repos]: URL for package installation
  • r_environment: [default: {}]: Environment variables to set during package tasks

  • r_scripts_install_path:: [default: /usr/local/bin]: Path to install the R script for managing packages

  • r_scripts_install_owner: [default: root]: Owner of the R script

  • r_scripts_install_group: [default: root]: Group of the R script

Dependencies

None

Examples

Simple
---
- hosts: all
  roles:
    - oefenweb.r
Advanced
---
- hosts: all
  roles:
    - oefenweb.r
  vars:
    r_install_dev: true
    r_install:
      - r-recommended
    r_packages:
      - name: dplyr
      - name: Biobase
        type: bioconductor
      - name: mangothecat/franc
        type: github

License

MIT

Author Information

Mischa ter Smitten

Feedback, Bug Reports, Requests

Are welcome!

Informazioni sul progetto

Set up the latest version of R in Ubuntu systems

Installa
ansible-galaxy install Oefenweb.latest_r
Licenza
mit
Download
89.5k
Proprietario