The use of copy() here is subtle, it might be good to describe how to approach side effects a bit better in the documentation.
Originally posted by @MichaelChirico in #7401 (comment)
This should be added to our reference semantics vignette and probably to help(':=') if its not already there.