Skip to content

Commit ba1adf7

Browse files
authored
Merge pull request #925 from tidymodels/s3-registration
S3 registration clean-up
2 parents b9d9b0b + cbeda77 commit ba1adf7

File tree

3 files changed

+4
-21
lines changed

3 files changed

+4
-21
lines changed

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Generated by roxygen2: do not edit by hand
22

33
S3method(augment,model_fit)
4+
S3method(autoplot,glmnet)
5+
S3method(autoplot,model_fit)
46
S3method(extract_fit_engine,model_fit)
57
S3method(extract_parameter_dials,model_spec)
68
S3method(extract_parameter_set_dials,model_spec)

R/autoplot.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#' @details The \pkg{glmnet} package will need to be attached or loaded for
2222
#' its `autoplot()` method to work correctly.
2323
#'
24-
# registered in zzz.R
24+
#' @export
2525
autoplot.model_fit <- function(object, ...) {
2626
autoplot(object$fit, ...)
2727
}
@@ -30,7 +30,7 @@ autoplot.model_fit <- function(object, ...) {
3030
# unit tests are located at https://github.com/tidymodels/extratests
3131
# nocov start
3232

33-
# registered in zzz.R
33+
#' @export
3434
#' @rdname autoplot.model_fit
3535
autoplot.glmnet <- function(object, ..., min_penalty = 0, best_penalty = NULL,
3636
top_n = 3L) {

R/zzz.R

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)