R/print.R

Defines functions print.nCov2019 print.nCov2019History

##' @method print nCov2019
##' @export
print.nCov2019 <- function(x, ...) {
  cat("China (total confirmed cases):", x$chinaTotal$confirm)
  cat("\nlast update:", time(x), "\n")
}

##' @method print nCov2019History
##' @export
print.nCov2019History <- function(x, ...) {
  cat("nCov2019 historical data", 
      "\nlast update:", as.character(time(x)), "\n")  
}
thamstra/nCOV2019 documentation built on April 1, 2020, 12:07 a.m.