getRVersionTag: Get R version in string format used for image tags
Description
Returns either a version extracted from a given object or the default version.
Usage
getRVersionTag(from, default = paste(R.Version()$major,
R.Version()$minor, sep = "."))
Arguments
from
the source to extract an R version: a `sessionInfo()` or `session_info()` object, a `description` object, or an `RData` file with a session info object
default
if 'from' does not contain version information (e.g. its an Rscript), use this default version information.
Examples
Run this code# NOT RUN {
getRVersionTag(from = sessionInfo())
# }
Run the code above in your browser using DataLab