powered by
Get a suitable Rocker image based on the R version. Needs network access to retrieve the available images.
getImageForVersion(r_version, nearest = TRUE)
A string representation of the R version, e.g. "3.4.2"
A boolean, should the closest version be returned if there is no match?
A string with the name of the Docker image
If there was no matching image found, a warning is issued.
# NOT RUN { getImageForVersion(getRVersionTag(utils::sessionInfo())) getImageForVersion("3.4.3") # }
Run the code above in your browser using DataLab