getRVersionTag: Get R version in string format used for image tags

Description Usage Arguments Examples

View source: R/utility-functions.R

Description

Returns either a version extracted from a given object or the default version.

Usage

1
2
3
4
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

1

o2r-project/containerit documentation built on June 28, 2021, 2:46 p.m.