Skip to content

Commit

Permalink
Merge pull request #14 from tidymodels/last_fit
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt authored Jul 11, 2024
2 parents ba21ba4 + b77bb5b commit 0b98f8c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Suggests:
dbplyr,
dplyr,
dtplyr,
hardhat,
jsonlite,
kknn,
parsnip,
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated by roxygen2: do not edit by hand

S3method(orbital,default)
S3method(orbital,last_fit)
S3method(orbital,model_fit)
S3method(orbital,model_spec)
S3method(orbital,recipe)
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# orbital (development version)

* `orbital()` now works on `tune::last_fit()` objects. (#13)

* `orbital_predict()` has been removed and replaced with the more idiomatic `predict()` method. (#10)

# orbital 0.1.0
Expand Down
6 changes: 6 additions & 0 deletions R/last_fit.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#' @export
orbital.last_fit <- function(x, ...) {
x <- hardhat::extract_workflow(x)
orbital(x)
}

0 comments on commit 0b98f8c

Please sign in to comment.