Skip to contents

Get renv version from lockfile

Usage

get_version_renv(x)

Arguments

x

A 'rt_list' or 'rt_tibble' class object. An single output from read_lock().

Value

A character string with version or NA

Examples

paths <- file.path(system.file("extdata", package = "renvtools"), "renv-r4.4.1.lock")
l <- read_lock(paths, format = "list")
get_version_renv(l)
#> [1] "1.0.7"