Check if installed version of package is latest
Usage
check_package_version(package)
Arguments
- package
String. Package name.
Value
Side-effect. Raises a warning if package is outdated.
Details
This function uses `pkgsearch::cran_package()` to check whether the installed version of a package is the latest available on CRAN. Useful to alert the user.
Examples
if (FALSE) {
check_package_version("AER")
}