Skip to content

Instantly share code, notes, and snippets.

@statzhero
Created December 19, 2023 19:38
Show Gist options
  • Save statzhero/e7910bdd367295b2a06fc1d7d1da3551 to your computer and use it in GitHub Desktop.
Save statzhero/e7910bdd367295b2a06fc1d7d1da3551 to your computer and use it in GitHub Desktop.
Reassign `<-` so that it prints the result
# 🎵 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