Skip to content

Commit

Permalink
fix disconnect between filter_collinear and its test
Browse files Browse the repository at this point in the history
  • Loading branch information
btupper committed Oct 4, 2024
1 parent 8968495 commit b44ffb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/filter_collinear.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ filter_collinear.default <- function(x,
cor_type = "pearson",
max_cells = Inf,
...) {
stop("no method available for class object type: ", paste(class(x), collapse = " "))
stop("no method available for this object type")
}

#' @rdname filter_collinear
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_filter_collinear.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test_that("filter collinear variables with cor_caret", {
# error for defautl object
expect_error(
filter_collinear("blah"),
"^no method available for this object type"
"no method available for this object type"
)

# sample from data.frame
Expand Down

0 comments on commit b44ffb8

Please sign in to comment.