validate_installed_package: Checks whether a package has already been installed. If it has, and if the version corresponds to the
required package version, then it returns TRUE. If it has been installed and the version does
not correspond to the required version, then it throws an exception. Otherwise, it returns false.
Description
Checks whether a package has already been installed. If it
has, and if the version corresponds to the required package
version, then it returns TRUE. If it has been installed and
the version does not correspond to the required version,
then it throws an exception. Otherwise, it returns false.
Usage
validate_installed_package(package, version, compare)
Arguments
package
the package to check
version
the required version
compare
the comparison operator
Value
whether we should install the package