`body<-` appears to not preserve attributes set on functions. Sometimes I use attributes on functions, eg for memoization, etc. Here is a small test case:
> f <- structure(function(x) x+1, foo='bar')
> body(f) <- body(mean)
I would expect changing the body to not affect the attributes at all.