Skip to content

Commit

Permalink
Merge pull request #192 from tidymodels/RC-0.2.3
Browse files Browse the repository at this point in the history
Release candidate 0.2.3
  • Loading branch information
EmilHvitfeldt authored Jul 2, 2024
2 parents f7d7d04 + 4db96a2 commit 0c6d247
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 21 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: tidyclust
Title: A Common API to Clustering
Version: 0.2.2.9000
Version: 0.2.3.9000
Authors@R: c(
person("Emil", "Hvitfeldt", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-0679-1945")),
Expand Down Expand Up @@ -54,4 +54,4 @@ Config/Needs/website: pkgdown, tidymodels, tidyverse, palmerpenguins,
Config/testthat/edition: 3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.2
6 changes: 6 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

S3method(as_tibble,cluster_metric_set)
S3method(augment,cluster_fit)
S3method(check_args,default)
S3method(check_args,hier_clust)
S3method(check_args,k_means)
S3method(extract_cluster_assignment,KMeansCluster)
S3method(extract_cluster_assignment,cluster_fit)
S3method(extract_cluster_assignment,cluster_spec)
Expand All @@ -24,6 +27,7 @@ S3method(fit,cluster_spec)
S3method(fit_xy,cluster_spec)
S3method(glance,cluster_fit)
S3method(load_pkgs,cluster_spec)
S3method(merge,cluster_spec)
S3method(min_grid,cluster_spec)
S3method(predict,cluster_fit)
S3method(predict,cluster_spec)
Expand All @@ -35,6 +39,8 @@ S3method(print,cluster_spec)
S3method(print,control_cluster)
S3method(print,hier_clust)
S3method(print,k_means)
S3method(required_pkgs,cluster_fit)
S3method(required_pkgs,cluster_spec)
S3method(set_args,cluster_spec)
S3method(set_engine,cluster_spec)
S3method(set_mode,cluster_spec)
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# tidyclust (development version)

# tidyclust 0.2.3

* Update to fix revdep issue for clustMixType. (#190)

# tidyclust 0.2.2
Expand Down
1 change: 1 addition & 0 deletions R/hier_clust.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ update.hier_clust <- function(object,

# # ----------------------------------------------------------------------------

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

Expand Down
1 change: 1 addition & 0 deletions R/k_means.R
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ update.k_means <- function(object,

# ------------------------------------------------------------------------------

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

Expand Down
1 change: 1 addition & 0 deletions R/misc.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ check_args <- function(object) {
UseMethod("check_args")
}

#' @export
check_args.default <- function(object) {
invisible(object)
}
Expand Down
3 changes: 2 additions & 1 deletion R/required_pkgs.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# https://github.com/tidymodels/parsnip/blob/main/R/required_pkgs.R

#' @export
required_pkgs.cluster_spec <- function(x, infra = TRUE, ...) {
if (is.null(x$engine)) {
rlang::abort("Please set an engine.")
}
get_pkgs(x, infra)
}

#' @export
required_pkgs.cluster_fit <- function(x, infra = TRUE, ...) {
get_pkgs(x$spec, infra)
}
Expand Down
1 change: 1 addition & 0 deletions R/tune_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ finalize_workflow_spec <- function(workflow, grid_model) {
workflow
}

#' @export
merge.cluster_spec <- function(x, y, ...) {
merger(x, y, ...)
}
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,18 @@ This project is released with a [Contributor Code of
Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html).
By contributing to this project, you agree to abide by its terms.

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

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

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

- Check out further details on [contributing guidelines for tidymodels
packages](https://www.tidymodels.org/contribute/) and [how to get
help](https://www.tidymodels.org/help/). Footer
- Check out further details on [contributing guidelines for tidymodels
packages](https://www.tidymodels.org/contribute/) and [how to get
help](https://www.tidymodels.org/help/). Footer
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Comments

update in testing to allow ClusterR easy release.
update in testing to fix bugs resultign from clustMixType release.

## R CMD check results

Expand Down
2 changes: 1 addition & 1 deletion man/cut_height.Rd

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

5 changes: 3 additions & 2 deletions man/dot-k_means_fit_clustMixType.Rd

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

7 changes: 5 additions & 2 deletions revdep/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@
|collate |en_US.UTF-8 |
|ctype |en_US.UTF-8 |
|tz |America/Los_Angeles |
|date |2024-06-17 |
|date |2024-07-02 |
|pandoc |3.1.12.3 @ /Applications/Positron.app/Contents/Resources/app/bin/pandoc/ (via rmarkdown) |

# Dependencies

|package |old |new |Δ |
|:---------|:-----|:----------|:--|
|tidyclust |0.2.1 |0.2.1.9000 |* |
|tidyclust |0.2.2 |0.2.2.9000 |* |
|cli |NA |3.6.3 |* |
|digest |NA |0.6.36 |* |
|lhs |NA |1.2.0 |* |

# Revdeps

0 comments on commit 0c6d247

Please sign in to comment.