Skip to contents

Given a renv.lock file with git conflicts, this function extracts the base and head versions of the file and creates a new merged file. The merging strategy is as follows:

  • If a package exists in either the base or the head version, it will be included in the new merged file.

  • If a package exists in both the base and head versions, the most recent version of the two will be included in the new merged file.

Usage

gitconflict_renv_lock_resolve(file, write_to)

Arguments

file

Path to the renv.lock file with git conflicts.

write_to

Path where the new merged file will be saved.