Skip to content

Commit

Permalink
allow writing to field
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Jan 2, 2024
1 parent 5083064 commit c346b42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/scale-.R
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,11 @@ is_active_binding <- function(self, name) {
FALSE
}

deprecate_trans <- function(x = self) {
deprecate_trans <- function(new = NULL, x = self) {
if (!is.null(new)) {
x$transformation <- new
return()
}
deprecate_soft0("3.5.0", I("Scale$trans"), I("Scale$transformation"))
x$transformation
}
Expand Down

0 comments on commit c346b42

Please sign in to comment.