Created
December 19, 2023 19:38
-
-
Save statzhero/e7910bdd367295b2a06fc1d7d1da3551 to your computer and use it in GitHub Desktop.
Reassign `<-` so that it prints the result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 🎵 Welcome to the 🔥 Danger Zone 🎶 | |
`<-` <- function(lhs, rhs) { | |
assign(deparse(substitute(lhs)), rhs, envir = parent.frame()) | |
print(rhs) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment