Re: [Rd] Problems with ::

2025-03-21 Thread Mikael Jagan
I've wanted to use specials to detect random effect terms as in ~(f | g), but non-syntactic function names (in this case, '|') are currently not supported. I proposed a patch some time ago: https://bugs.r-project.org/show_bug.cgi?id=18568 I wonder if some of these issues with '::' could be s

Re: [Rd] structure(, ...) is sticky: a bug, or should it be an error?

2025-03-21 Thread Martin Maechler
> Henrik Bengtsson > on Thu, 20 Mar 2025 11:55:05 -0700 writes: >> I'm pretty convinced we should fix it by checking for >> primitive functions inside the C code of `attributes<-` : >> arguably the bug is really there, rather than in >> structure(). >> >> Patc

Re: [Rd] structure(, ...) is sticky: a bug, or should it be an error?

2025-03-21 Thread Martin Maechler
> Martin Maechler > on Fri, 21 Mar 2025 14:49:16 +0100 writes: > Henrik Bengtsson > on Thu, 20 Mar 2025 11:55:05 -0700 writes: >>> I'm pretty convinced we should fix it by checking for >>> primitive functions inside the C code of `attributes<-` : >>> arguably

Re: [Rd] table() and as.character() performance for logical values

2025-03-21 Thread Aidan Lakshman via R-devel
Some small points to add on this discussion: > After investigating the source of table, I ended up on the reason being > “as.character()”: This is specifically happening within the conversion of the input to type factor, which is where the as.character conversion happens. # Timing is all on

Re: [Rd] [External] Suppressed "graphical parameter" warnings reviving themselves magically

2025-03-21 Thread luke-tierney--- via R-devel
Warnings are not "reviving themselves magically". Try resizing the window a few times and hitting return in the REPL. That should give you a hint on what is going on. Best, luke On Fri, 21 Mar 2025, Henrik Bengtsson wrote: What's going on here? $ R --vanilla --quiet plot.new(); suppressWarn

Re: [Rd] Suppressed "graphical parameter" warnings reviving themselves magically

2025-03-21 Thread Rui Barradas
Às 05:51 de 21/03/2025, Henrik Bengtsson escreveu: What's going on here? $ R --vanilla --quiet plot.new(); suppressWarnings({ points(0, 0, foo = TRUE) }) NULL NULL Warning messages: 1: "foo" is not a graphical parameter 2: "foo" is not a graphical parameter Note how the warnings are revived i