Learn R Programming

containerit (version 0.6.0)

getImageForVersion: getImageForVersion-method

Description

Get a suitable Rocker image based on the R version. Needs network access to retrieve the available images.

Usage

getImageForVersion(r_version, nearest = TRUE)

Arguments

r_version

A string representation of the R version, e.g. "3.4.2"

nearest

A boolean, should the closest version be returned if there is no match?

Value

A string with the name of the Docker image

Details

If there was no matching image found, a warning is issued.

Examples

Run this code
# NOT RUN {
getImageForVersion(getRVersionTag(utils::sessionInfo()))
getImageForVersion("3.4.3")

# }

Run the code above in your browser using DataLab