R/summary.R

Defines functions summary.shiny_benchmark

Documented in summary.shiny_benchmark

#' Summary for shiny_benchmark class
#'
#' @param object shiny_benchmark object
#' @param ... Other parameters
#'
#' @return Return a `data.frame` with performance tests' summary statistics
#'
#' @method summary shiny_benchmark
#' @export
summary.shiny_benchmark <- function(object, ...) {
  if (!requireNamespace(package = "dplyr", quietly = TRUE))
    stop("dplyr is missing. Please, consider intalling dplyr.")

  summary_results <- lapply(X = object$performance, FUN = summarise_commit)
  summary_results <- bind_rows(summary_results, .id = "commit")

  return(summary_results)
}

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.