R/print.R

Defines functions print.shiny_benchmark

Documented in print.shiny_benchmark

#' Print for shiny_benchmark class
#'
#' @param x shiny_benchmark object
#' @param ... Other parameters
#'
#' @return Print on the console information about the `shiny_benchmark` object
#'
#' @method print shiny_benchmark
#' @export
print.shiny_benchmark <- function(x, ...) {
  cat("shiny benchmark: \n")
  cat("\n")
  cat("Call:")
  cat("\n")
  print(x$call)
  cat("\n")
  cat("Total time ellapsed:")
  cat("\n")
  print(x$time[["elapsed"]])
  cat("\n")
  cat("Fit measures: \n")
  print(x$performance)
}

Try the shiny.benchmark package in your browser

Any scripts or data that you put into this service are public.

shiny.benchmark documentation built on Jan. 22, 2023, 1:28 a.m.