Skip to contents

By default, this will take in a lockfile or a desc object and convert it to an equivalent DESCRIPTION file for use with packages that check for system dependencies.

Usage

lock2desc(lockfile, desc = tempfile())

Arguments

lockfile

the path to the renv lockfile OR a desc::description() object.

desc

the path to the new description file

Value

the path to the new description file

Examples

lock <- system.file("renv.lock", package = "vise")
lock2desc(lock)
#> [1] "/tmp/RtmpZNDwPK/file197b19378757/DESCRIPTION"