How can I overwrite the `->` operator in R?

Viewed 47

I would like to have R print out the value that is about to be saved as an object any time I use the right-assign operator (->).

I tried to do this with:

`->` <- compose(`->`, print)

but I was met with:

Error in list2(...) : object '->' not found

Where have I gone wrong?

0 Answers
Related