[Rd] Calling a replacement function in a custom environment

2023-08-27 Thread Konrad Rudolph
Hello all, I am wondering whether it’s at all possible to call a replacement function in a custom environment. From my experiments this appears not to be the case, and I am wondering whether that restriction is intentional. To wit, the following works: x = 1 base::is.na(x) = TRUE However, the f

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

2023-08-27 Thread Duncan Murdoch
I think there isn't a way to make this work other than calling `is.na<-` explicitly: x <- b$`is.na<-`(x, TRUE) It seems like a reasonable suggestion to make b$is.na(x) <- TRUE work as long as b is an environment. If you wanted it to work when b was a list, it would be more problematic b

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

[Rd] R packages to send plottable data to external apps

2023-08-27 Thread Mike Marchywka
I was curious what R packages, or indeed any other applications, exist to plot streamed data from arbitrary data generators. It need not be publication quality plotting but it should be easy to use like an oscilloscope. I was working on something called datascope that I am using for 1D finite di

Re: [Rd] R packages to send plottable data to external apps

2023-08-27 Thread Iñaki Ucar
I think r-package-devel is a better place for this. CC'ing there. On Sun, 27 Aug 2023 at 23:50, Mike Marchywka wrote: > > I was curious what R packages, or indeed any other applications, exist > to plot streamed data from arbitrary data generators. It need not > be publication quality plotting bu