koalaverse / vip
Showing 3 of 6 files from the diff.

@@ -185,7 +185,12 @@
Loading
185 185
#'
186 186
#' @export
187 187
vi.model_fit <- function(object, ...) {  # package: parsnip
188 -
  vi(object$fit, ...)
188 +
  vi(parsnip::extract_fit_engine(object), ...)
189 +
}
190 +
191 +
#' @export
192 +
vi.workflow <- function(object, ...) {  # package: workflows
193 +
  vi(workflows::extract_fit_engine(object), ...)
189 194
}
190 195
191 196

@@ -727,7 +727,12 @@
Loading
727 727
#'
728 728
#' @export
729 729
vi_model.model_fit <- function(object, ...) {  # package: parsnip
730 -
  vi_model(object$fit, ...)
730 +
  vi_model(parsnip::extract_fit_engine(object), ...)
731 +
}
732 +
733 +
#' @export
734 +
vi_model.workflow <- function(object, ...) {  # package: workflows
735 +
  vi_model(workflows::extract_fit_engine(object), ...)
731 736
}
732 737
733 738

@@ -236,6 +236,10 @@
Loading
236 236
#'
237 237
#' @export
238 238
vip.model_fit <- function(object, ...) {
239 -
  vip(object$fit, ...)
239 +
  vip(parsnip::extract_fit_engine(object), ...)
240 240
}
241 241
242 +
#' @export
243 +
vip.workflow <- function(object, ...) {
244 +
  vip(workflows::extract_fit_engine(object), ...)
245 +
}
Files Coverage
R 69.55%
Project Totals (13 files) 69.55%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading