R/print.Tenv.R

Defines functions print.Tenv

#' @method print Tenv
#' @export
#' @importFrom stats coef

print.Tenv <- function(x, ...){
  cat("Call:\n", paste(deparse(x$call), sep = "\n", collapse = "\n"),
      "\n\n", sep = "")
  cat("Coefficients:\n")
  cf <- stats::coef(x)
  if (!is.null(cf)) {
    print(cf)
  }
  else cat("No coefficients\n")
  cat("\n")
  invisible(x)
}
jerryfsu3333/TRES_code documentation built on Nov. 14, 2021, 6:10 p.m.