Check whether an R package has been decommissioned in CRAN
Source:R/decommissionedPkg.R
rDecomPkg.Rd
Designed to assist users in checking the decommission status of an R package on CRAN. In the context of R language, CRAN stands for the Comprehensive R Archive Network.
Value
the decommissioned status of a particular package based on the available packages using the utils package
Details
CRAN is a network of servers around the world that store R packages and their documentation, providing a centralized repository for the R community. With the current function, users can quickly and easily determine whether a specific R package has been decommissioned on CRAN, ensuring they stay informed about the availability and support status of the packages they rely on for their R programming projects. This tool simplifies the process of package management, helping users maintain up-to-date and reliable dependencies in their R code.
Examples
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")
}