Oefenweb.latest_r
R
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
forUbuntu >= 18.04
,40
forUbuntu >= 20.04
]: Which version of R to installr_cran_mirror
: [default:https://cran.rstudio.com/
]: Your preferred CRAN mirrorr_bioclite_url
: [default:https://bioconductor.org/biocLite.R
]: The URL for thebiocLite.R
script for installing Bioconductorr_install_dev
: [default:false
]: Install ther-base-dev
package or notr_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 installedr_packages_repos
: [default:"{{ r_cran_mirror }}"
]: URL for installing packagesr_packages
: [default:[]
]: Packages to install or remover_packages.{n}.name
: [required]: Package namer_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 installationr_packages.{n}.repos
: [optional, default:r_packages_repos
]: URL for package installation
r_environment
: [default:{}
]: Environment variables to set during package tasksr_scripts_install_path:
: [default:/usr/local/bin
]: Path to install the R script for managing packagesr_scripts_install_owner
: [default:root
]: Owner of the R scriptr_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!
Set up the latest version of R in Ubuntu systems
ansible-galaxy install Oefenweb.latest_r