#' @title BenchmarkResult
#' @format [R6Class()] object
#'
#' @description
#' A [R6::R6Class()] containing data of a [benchmark()].
#'
#' @field data [`data.table`]: Data stored in a tabular format.
BenchmarkResult = R6Class("BenchmarkResult",
inherit = ResampleResult,
cloneable = FALSE,
public = list(
initialize = function(results, resampling.ids, resampling.iters) {
assertAtomicVector(resampling.ids, len = length(results))
assertAtomicVector(resampling.iters, len = length(results))
self$data = rbindlist(lapply(results, function(x) x$data))
self$data[, "resampling.id" := resampling.ids]
self$data[, "resampling.iter" := resampling.iters][]
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.