R/check_packages.R

Defines functions check.packages

Documented in check.packages

#'Check and reports if any of your packages are out of date with CRAN
#'
#' @export
#' @importFrom utils old.packages
check.packages <- function() {
    if (!is.null(old.packages())) {	
        old_packages <- old.packages()
        cat('Notification:', nrow(old_packages), 'packages are out of date \n')
        cat(unname(old_packages[, 1]), sep = ',', '\n')
    }
    if (is.null(old.packages())) {
        cat('All packages are current \n')
    }
}
karthik/coyote documentation built on May 18, 2017, 3:29 p.m.