pversion {tinycodet} | R Documentation |
Check for Package Versions Mismatch
Description
The pversion_check4mismatch()
function
checks if there is any mismatch between
the currently loaded packages and the packages in the specified library path.
The pversion_report()
function
gives a table of all specified packages,
with their loaded and installed versions,
regardless if there is a mismatch or not.
Usage
pversion_check4mismatch(pkgs = NULL, lib.loc = .libPaths())
pversion_report(pkgs = NULL, lib.loc = .libPaths())
Arguments
pkgs |
a character vector with the package name(s). |
lib.loc |
character vector specifying library search path
(the location of R library trees to search through). |
Value
For pversion_check4mismatch()
:
If no mismatch between loaded versions and those in lib.loc
were found,
returns NULL
.
Otherwise it returns a data.frame
,
with the loaded version and library version of the specified packages.
For pversion_report()
:
Returns a data.frame
,
with the loaded version and library version of the specified packages,
as well as a logical column indicating whether the two versions are equal (TRUE
),
or not equal (FALSE
).
See Also
Examples
"dplyr" %installed in% .libPaths()
import_as(~dpr., "dplyr")
pversion_check4mismatch()
pversion_report()