if (FALSE) {
# check if cattonum package is decommissioned
# the current package is expected to be decommissioned
rDecomPkg("cattonum")
# check if dplyr is decommissioned
# the current package is expected NOT to be decommissioned
rDecomPkg("dplyr")
# when a package never existed in CRAN
# the result of the function call should be NA
rDecomPkg("printy")
rDecomPkg("package0002312122312")
}
Run the code above in your browser using DataLab