Skip to content

Commit cbeda77

Browse files
committed
register autoplot() methods the regular way
since parsnip imports ggplot2
1 parent 1398fe8 commit cbeda77

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
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 & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)