Re: [R-pkg-devel] Three-argument S3method declaration does not seem to affect dispatching from inside the package.

2019-05-18 Thread Pavel Krivitsky
Hi, Inaki, On Tue, 2019-05-14 at 12:50 +0200, Iñaki Ucar wrote: > The thing is that, in R, "nearer" means "the calling environment" > (and then, other things). When you call test_me(), the calling > environment for gen() is the package namespace. When you call gen() > directly, thenthe calling env

Re: [R-pkg-devel] R3.6.0 suppressing S3 overwrite messages

2019-05-18 Thread Roy Mendelssohn - NOAA Federal via R-package-devel
--- Begin Message --- Thanks again. I use httr explicitly, I believe hoardr is used by another package that I use. I don't think the conflict will cause problems given how I am using them, but your explanation clarifies what is going on for me to check on. -Roy > On May 18, 2019, at 1:23

Re: [R-pkg-devel] R3.6.0 suppressing S3 overwrite messages

2019-05-18 Thread Duncan Murdoch
On 18/05/2019 4:03 p.m., Duncan Murdoch wrote: On 18/05/2019 3:42 p.m., Roy Mendelssohn - NOAA Federal via R-package-devel wrote: My memory is that this was discussed here, but i can't find the emails, including in the archives ( i did find a similar query from Yihui on r-dev.). Probably th

Re: [R-pkg-devel] R3.6.0 suppressing S3 overwrite messages

2019-05-18 Thread Roy Mendelssohn - NOAA Federal via R-package-devel
--- Begin Message --- Thanks. I thought I remembered seeing this discussed. I was looking in the archives for this list, not r-help. -Roy > On May 18, 2019, at 1:03 PM, Duncan Murdoch wrote: > > On 18/05/2019 3:42 p.m., Roy Mendelssohn - NOAA Federal via R-package-devel > wrote: >> My mem

Re: [R-pkg-devel] R3.6.0 suppressing S3 overwrite messages

2019-05-18 Thread Duncan Murdoch
On 18/05/2019 3:42 p.m., Roy Mendelssohn - NOAA Federal via R-package-devel wrote: My memory is that this was discussed here, but i can't find the emails, including in the archives ( i did find a similar query from Yihui on r-dev.). Probably there, I am just not seeing it. In the package I

[R-pkg-devel] R3.6.0 suppressing S3 overwrite messages

2019-05-18 Thread Roy Mendelssohn - NOAA Federal via R-package-devel
--- Begin Message --- Hi All: My memory is that this was discussed here, but i can't find the emails, including in the archives ( i did find a similar query from Yihui on r-dev.). Probably there, I am just not seeing it. In the package I am working on for submission, when I load the packag

Re: [R-pkg-devel] Function Overloading of S4 Methods

2019-05-18 Thread Georgi Boshnakov
>Both are dispatched ONLY through the type of arguments. Not quite. The dispatch may be by type but C++ identifies the arguments by position, while S4 applies R's dispatch rules and respect the names, if present. Regarding your example from a previous email: > ...You can write the previous

Re: [R-pkg-devel] Function Overloading of S4 Methods

2019-05-18 Thread Linus Chen
Dear Dario, I think differently, I think my examples show the resemblance between the way of "dispatching" for S4 generic and that for C++ overloaded function. Both are dispatched ONLY through the type of arguments. Again following your original example: int larger(int x, int y); char larger(char

Re: [R-pkg-devel] Function Overloading of S4 Methods

2019-05-18 Thread Dario Strbenac
Good day, Your conclusion seems to be different to the details you discussed. Don't you intend to conclude that it's not possible with an S4 generic to define methods with different argument names which is different to a language such as C++? -- Dario Strbena