require_package.RdCheck whether a package is installed. If not, the procedure offers to install the latest version from CRAN or GitHub. Then it check for a minimum version.
require_package(pkg, version, repo = "CRAN")A logical indicating success (TRUE) or failure (FALSE) for version check.