Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Depends:
R (>= 2.10)
Imports:
dplyr,
rlang (>= 0.3.0.1),
rlang (>= 0.3.1),
purrr,
utils,
tibble,
Expand All @@ -29,7 +29,7 @@ Imports:
tidyr,
globals
Roxygen: list(markdown = TRUE)
RoxygenNote: 6.1.0.9000
RoxygenNote: 6.1.1
Suggests:
testthat,
knitr,
Expand All @@ -39,4 +39,3 @@ Suggests:
xgboost,
covr,
sparklyr

1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export(show_call)
export(surv_reg)
export(svm_poly)
export(svm_rbf)
export(tidy.model_fit)
export(translate)
export(varying)
export(varying_args)
Expand Down
9 changes: 9 additions & 0 deletions R/tidy.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#' Turn a parsnip model object into a tidy tibble
#'
#' This method tidies the model in a parsnip model object, if it exists.
#'
#' @inheritParams generics::tidy
#'
#' @return a tibble
#' @export
tidy.model_fit <- function(x, ...) generics::tidy(x$fit, ...)
19 changes: 19 additions & 0 deletions man/tidy.model_fit.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.