Skip to contents

Compare the deparsed source of one package function across two already installed versions of the same package.

Usage

diff_versions(package, name, v1, v2, lib = .libPaths(), timeout = 30)

Arguments

package

A single installed package name.

name

A single function name, exported or internal.

v1, v2

Single version strings to compare.

lib

Character vector of library paths to search. Defaults to .libPaths().

timeout

Maximum number of seconds allowed for each extraction subprocess. Must be finite and positive.

Value

An insider_diff object, invisibly. It contains the resolved library paths for each version, whether the sources are byte-identical, added and removed line counts, argument-name changes, the ordered line diff, and the original deparsed source for each version.

Examples

if (FALSE) { # \dontrun{
diff_versions("fs", "path_has_parent", "1.6.5", "2.1.0")
} # }