Re: [Rd] transform.data.frame() ignores unnamed arguments when no named argument is provided

2023-03-04 Thread Gabriel Becker
~G > > -Original Message- > From: R-devel On Behalf Of Martin Maechler > Sent: Friday, March 3, 2023 10:26 AM > To: Gabriel Becker > Cc: Antoine Fabri ; R-devel < > r-devel@r-project.org> > Subject: Re: [Rd] transform.data.frame() ignores unnamed arguments w

Re: [Rd] transform.data.frame() ignores unnamed arguments when no named argument is provided

2023-03-03 Thread avi.e.gross
() ignores unnamed arguments when no named argument is provided >>>>> Gabriel Becker >>>>> on Thu, 2 Mar 2023 14:37:18 -0800 writes: > On Thu, Mar 2, 2023 at 2:02 PM Antoine Fabri > wrote: >> Thanks and good point about unspecified beh

Re: [Rd] transform.data.frame() ignores unnamed arguments when no named argument is provided

2023-03-03 Thread Ben Bolker
For what it's worth I think the increased emphasis on classed errors should help with this (i.e., it will be easier to filter out errors you know are false positives/irrelevant for your use case). On Fri, Mar 3, 2023 at 12:17 PM Antoine Fabri wrote: > > Let me expand a bit, I might have

Re: [Rd] transform.data.frame() ignores unnamed arguments when no named argument is provided

2023-03-03 Thread Antoine Fabri
Let me expand a bit, I might have expressed myself poorly. If there is a good reason for a warning I want a warning, and because I take them seriously I don't want my console cluttered with those that can be avoided. I strongly believe we should strive to make our code silent, and I like my

Re: [Rd] transform.data.frame() ignores unnamed arguments when no named argument is provided

2023-03-03 Thread Martin Maechler
> Gabriel Becker > on Thu, 2 Mar 2023 14:37:18 -0800 writes: > On Thu, Mar 2, 2023 at 2:02 PM Antoine Fabri > wrote: >> Thanks and good point about unspecified behavior. The way >> it behaves now (when it doesn't ignore) is more >> consistent with data.frame()

Re: [Rd] transform.data.frame() ignores unnamed arguments when no named argument is provided

2023-03-02 Thread Gabriel Becker
On Thu, Mar 2, 2023 at 2:02 PM Antoine Fabri wrote: > Thanks and good point about unspecified behavior. The way it behaves now > (when it doesn't ignore) is more consistent with data.frame() though so I > prefer that to a "warn and ignore" behaviour: > > data.frame(a = 1, b = 2, 3) > > #> a b

Re: [Rd] transform.data.frame() ignores unnamed arguments when no named argument is provided

2023-03-02 Thread Antoine Fabri
Thanks and good point about unspecified behavior. The way it behaves now (when it doesn't ignore) is more consistent with data.frame() though so I prefer that to a "warn and ignore" behaviour: data.frame(a = 1, b = 2, 3) #> a b X3 #> 1 1 2 3 data.frame(a = 1, 2, 3) #> a X2 X3 #> 1 1 2

Re: [Rd] transform.data.frame() ignores unnamed arguments when no named argument is provided

2023-03-02 Thread Sebastian Meyer
Note that ?transform.data.frame says arguments need to be named, so you are testing unspecified behaviour. I guess this falls in a similar category as the note If some of the values are not vectors of the appropriate length, you deserve whatever you get! Experiments for a related