Re: [R-pkg-devel] [External] Re: S3 generic/method consistency warning for formula method

2020-01-18 Thread Joris Meys
ncan Murdoch; r-package-devel@r-project.org Subject: RE: [R-pkg-devel] [External] Re: S3 generic/method consistency warning for formula method I spoke too soon. dotsMethods will not work for me since it does not allow for mixing of the ellipsis with other formal arguments. For example, the following

Re: [R-pkg-devel] [External] Re: S3 generic/method consistency warning for formula method

2020-01-17 Thread Smith, Brian J
ences documentation that does not seem to explain the actual issue. -Original Message- From: R-package-devel On Behalf Of Smith, Brian J Sent: Friday, January 17, 2020 11:45 AM To: Joris Meys ; Duncan Murdoch ; r-package-devel@r-project.org Subject: Re: [R-pkg-devel] [External] Re: S3 gene

Re: [R-pkg-devel] [External] Re: S3 generic/method consistency warning for formula method

2020-01-17 Thread Smith, Brian J
That's an interesting solution too. -Original Message- From: Duncan Murdoch Sent: Friday, January 17, 2020 11:17 AM To: Smith, Brian J ; r-package-devel@r-project.org Subject: Re: [External] Re: [R-pkg-devel] S3 generic/method consistency warning for formula method On 17/01/2020 10:59

Re: [R-pkg-devel] [External] Re: S3 generic/method consistency warning for formula method

2020-01-17 Thread Smith, Brian J
gt;check implementation? Nevertheless, it looks like I have a way to get rid of the warning. -Original Message- From: Joris Meys Sent: Friday, January 17, 2020 10:12 AM To: Smith, Brian J ; Duncan Murdoch ; r-package-devel@r-project.org Subject: Re: [R-pkg-devel] [External] Re: S3 gen

Re: [R-pkg-devel] [External] Re: S3 generic/method consistency warning for formula method

2020-01-17 Thread Joris Meys
umfff. foo(y,x) will dispatch to foo.numeric() obviously __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] [External] Re: S3 generic/method consistency warning for formula method

2020-01-17 Thread Joris Meys
lf of Smith, Brian J Sent: Friday, January 17, 2020 4:59 PM To: Duncan Murdoch; r-package-devel@r-project.org Subject: Re: [R-pkg-devel] [External] Re: S3 generic/method consistency warning for formula method Thanks Duncan. I was surprised too when first realizing this was possible. I believe

Re: [R-pkg-devel] [External] Re: S3 generic/method consistency warning for formula method

2020-01-17 Thread Smith, Brian J
Thanks Duncan. I was surprised too when first realizing this was possible. I believe the reason it works is that UseMethod dispatches on the first supplied argument by default. So, really the dispatch is on the first element of the ellipsis. The 'c' function works like this, albeit as a prim