R/display-utils.R

Defines functions show_config

Documented in show_config

#' Display config file
#'
#' @description 
#' Function display on STDIN config file given by user.
#'
#' @param .config loaded yaml file :: List
#' @export

show_config = function(.config) {
  cli::cli_alert_info("Loaded benchmark config:")
  cli::cli_ol()
  cli::cli_li("Algorhitms:")
  ulid = cli::cli_ul()
  cli::cli_li("{.config$methods}")
  cli::cli_end(ulid)
  cli::cli_li("Benchmark name: {.config$benchmark}")
  cli::cli_li("Dimensions: {.config$dimensions}")
  cli::cli_li("Repetitions: {.config$repetition}")
  cli::cli_li("Problems: {.config$problems}")
  cli::cli_end()
}
warbarbye/cecs-benchmark documentation built on March 10, 2020, 12:09 a.m.