powered by
Check if a package is installed for the user.
check_package(pkg, version)
Name of the package
the latest version to be checked
1 if the package is not installed; -1 if the package is not up to date; 0 if the package if the package is installed and up to date.
# NOT RUN { check_package("RDocumentation","0.2") check_package("utils","3.3.1") # } # NOT RUN { # }
Run the code above in your browser using DataLab