Skip to content

Commit 0f6bfde

Browse files
committed
use newer roxygen version
1 parent f7d7d04 commit 0f6bfde

10 files changed

+29
-17
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ Config/Needs/website: pkgdown, tidymodels, tidyverse, palmerpenguins,
5454
Config/testthat/edition: 3
5555
Encoding: UTF-8
5656
Roxygen: list(markdown = TRUE)
57-
RoxygenNote: 7.2.3
57+
RoxygenNote: 7.3.2

NAMESPACE

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
S3method(as_tibble,cluster_metric_set)
44
S3method(augment,cluster_fit)
5+
S3method(check_args,default)
6+
S3method(check_args,hier_clust)
7+
S3method(check_args,k_means)
58
S3method(extract_cluster_assignment,KMeansCluster)
69
S3method(extract_cluster_assignment,cluster_fit)
710
S3method(extract_cluster_assignment,cluster_spec)
@@ -24,6 +27,7 @@ S3method(fit,cluster_spec)
2427
S3method(fit_xy,cluster_spec)
2528
S3method(glance,cluster_fit)
2629
S3method(load_pkgs,cluster_spec)
30+
S3method(merge,cluster_spec)
2731
S3method(min_grid,cluster_spec)
2832
S3method(predict,cluster_fit)
2933
S3method(predict,cluster_spec)
@@ -35,6 +39,8 @@ S3method(print,cluster_spec)
3539
S3method(print,control_cluster)
3640
S3method(print,hier_clust)
3741
S3method(print,k_means)
42+
S3method(required_pkgs,cluster_fit)
43+
S3method(required_pkgs,cluster_spec)
3844
S3method(set_args,cluster_spec)
3945
S3method(set_engine,cluster_spec)
4046
S3method(set_mode,cluster_spec)

R/hier_clust.R

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ update.hier_clust <- function(object,
145145

146146
# # ----------------------------------------------------------------------------
147147

148+
#' @export
148149
check_args.hier_clust <- function(object) {
149150
args <- lapply(object$args, rlang::eval_tidy)
150151

R/k_means.R

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ update.k_means <- function(object,
126126

127127
# ------------------------------------------------------------------------------
128128

129+
#' @export
129130
check_args.k_means <- function(object) {
130131
args <- lapply(object$args, rlang::eval_tidy)
131132

R/misc.R

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ check_args <- function(object) {
44
UseMethod("check_args")
55
}
66

7+
#' @export
78
check_args.default <- function(object) {
89
invisible(object)
910
}

R/required_pkgs.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# https://github.com/tidymodels/parsnip/blob/main/R/required_pkgs.R
2-
2+
#' @export
33
required_pkgs.cluster_spec <- function(x, infra = TRUE, ...) {
44
if (is.null(x$engine)) {
55
rlang::abort("Please set an engine.")
66
}
77
get_pkgs(x, infra)
88
}
99

10+
#' @export
1011
required_pkgs.cluster_fit <- function(x, infra = TRUE, ...) {
1112
get_pkgs(x$spec, infra)
1213
}

R/tune_helpers.R

+1
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ finalize_workflow_spec <- function(workflow, grid_model) {
302302
workflow
303303
}
304304

305+
#' @export
305306
merge.cluster_spec <- function(x, y, ...) {
306307
merger(x, y, ...)
307308
}

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,18 @@ This project is released with a [Contributor Code of
160160
Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html).
161161
By contributing to this project, you agree to abide by its terms.
162162

163-
- For questions and discussions about tidymodels packages, modeling,
164-
and machine learning, please [post on RStudio
165-
Community](https://forum.posit.co/new-topic?category_id=15&tags=tidymodels,question).
163+
- For questions and discussions about tidymodels packages, modeling, and
164+
machine learning, please [post on RStudio
165+
Community](https://forum.posit.co/new-topic?category_id=15&tags=tidymodels,question).
166166

167-
- If you think you have encountered a bug, please [submit an
168-
issue](https://github.com/tidymodels/tidyclust/issues).
167+
- If you think you have encountered a bug, please [submit an
168+
issue](https://github.com/tidymodels/tidyclust/issues).
169169

170-
- Either way, learn how to create and share a
171-
[reprex](https://reprex.tidyverse.org/articles/articles/learn-reprex.html)
172-
(a minimal, reproducible example), to clearly communicate about your
173-
code.
170+
- Either way, learn how to create and share a
171+
[reprex](https://reprex.tidyverse.org/articles/articles/learn-reprex.html)
172+
(a minimal, reproducible example), to clearly communicate about your
173+
code.
174174

175-
- Check out further details on [contributing guidelines for tidymodels
176-
packages](https://www.tidymodels.org/contribute/) and [how to get
177-
help](https://www.tidymodels.org/help/). Footer
175+
- Check out further details on [contributing guidelines for tidymodels
176+
packages](https://www.tidymodels.org/contribute/) and [how to get
177+
help](https://www.tidymodels.org/help/). Footer

man/cut_height.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/dot-k_means_fit_clustMixType.Rd

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)