Check if the package version has been updated compared to the a master repo (default is origin/master). This ensures that when branches are merged the package version is bumped.

check_version(repo = "origin/master", path = ".")

Arguments

repo

Default origin/master. The repo to compare against.

path

Location of the package

Details

Files listed in .Rbuildignore don't count as changes.

Technically we only check for a change in the Version line of the DESCRIPTION file, not an actual version increase.