Skip to content

Commit ef458a5

Browse files
authored
Merge pull request #218 from tidymodels/add_class
removed `at_end` arg
2 parents 5874b1c + 3bc4cb8 commit ef458a5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

R/misc.R

+2-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ names0 <- function(num, prefix = "x") {
3333
paste0(prefix, ind)
3434
}
3535

36-
add_class <- function(x, cls, at_end = FALSE) {
37-
class(x) <- if (at_end)
38-
c(class(x), cls)
39-
else
40-
c(cls, class(x))
36+
add_class <- function(x, cls) {
37+
class(x) <- c(cls, class(x))
4138
x
4239
}
4340

0 commit comments

Comments
 (0)