Re: [Rd] [External] Re: Calling a replacement function in a custom environment

2023-08-28 Thread Konrad Rudolph
> > I do not think it is a reasonable suggestion. The reasons a::b and > a:::b were made to work is that many users read these as a single > symbol, not a call to a binary operator. So supporting this helped to > reduce confusion. > Conceptually, the same is true for `a$b` when `a` is used as an e

Re: [Rd] [External] Re: Calling a replacement function in a custom environment

2023-08-27 Thread luke-tierney
On Sun, 27 Aug 2023, Duncan Murdoch wrote: I think there isn't a way to make this work other than calling `is.na<-` explicitly: x <- b$`is.na<-`(x, TRUE) Replacement functions are not intended to be called directly. Calling a replacement function directly may produce an error, or may just