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 PM, Duncan Murdoch  wrote:
> 
> 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 there,  I am just not seeing it.  In the package I am 
>>> working on for submission,  when I load the package i get:
>> There was a thread about this on R-help, started by Rolf Turner on April
>> 29, subject "Message produced under R 3.6.0.".
>> Users can suppress those messages, but I don't think package writers
>> can:  they indicate true bugs, and the packages mentioned (ggplot2,
>> crul, hoardr in your case) need to be fixed to get rid of them.
> 
> Sorry, that claim isn't correct.  For example, hoardr has a conflict with 
> httr, but it's really a weakness of S3 that is causing this:  they both 
> define things with class "cache_info", and the warning you're seeing is 
> because both have print.cache_info methods.  However, the classes are 
> unrelated.  I think the problem is that R can only have one print.cache_info 
> method active, and you somehow got both hoardr and httr loaded at the same 
> time.
> 
> Either one of them could work around this S3 limitation by changing the name 
> of the class (e.g. to "hoardr_cache_info" or "httr_cache_info"), but I don't 
> think it was fair of me to suggest some flaw in either of those packages for 
> the collision.
> 
> Duncan Murdoch

**
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.

--- End Message ---
__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


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 there,  I am just not seeing it.  In the package I am working on for 
submission,  when I load the package i get:



There was a thread about this on R-help, started by Rolf Turner on April
29, subject "Message produced under R 3.6.0.".

Users can suppress those messages, but I don't think package writers
can:  they indicate true bugs, and the packages mentioned (ggplot2,
crul, hoardr in your case) need to be fixed to get rid of them.


Sorry, that claim isn't correct.  For example, hoardr has a conflict 
with httr, but it's really a weakness of S3 that is causing this:  they 
both define things with class "cache_info", and the warning you're 
seeing is because both have print.cache_info methods.  However, the 
classes are unrelated.  I think the problem is that R can only have one 
print.cache_info method active, and you somehow got both hoardr and httr 
loaded at the same time.


Either one of them could work around this S3 limitation by changing the 
name of the class (e.g. to "hoardr_cache_info" or "httr_cache_info"), 
but I don't think it was fair of me to suggest some flaw in either of 
those packages for the collision.


Duncan Murdoch

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


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 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 package i get:
> 
> 
> There was a thread about this on R-help, started by Rolf Turner on April 29, 
> subject "Message produced under R 3.6.0.".
> 
> Users can suppress those messages, but I don't think package writers can:  
> they indicate true bugs, and the packages mentioned (ggplot2, crul, hoardr in 
> your case) need to be fixed to get rid of them.
> 
> Duncan Murdoch
> 

**
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.

--- End Message ---
__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


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 am working on for 
submission,  when I load the package i get:



There was a thread about this on R-help, started by Rolf Turner on April 
29, subject "Message produced under R 3.6.0.".


Users can suppress those messages, but I don't think package writers 
can:  they indicate true bugs, and the packages mentioned (ggplot2, 
crul, hoardr in your case) need to be fixed to get rid of them.


Duncan Murdoch

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


[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 package i get:

> Registered S3 methods overwritten by 'ggplot2':
>   method from 
>   [.quosures rlang
>   c.quosures rlang
>   print.quosures rlang
> Registered S3 method overwritten by 'crul':
>   method from
>   as.character.form_file httr
> Registered S3 method overwritten by 'hoardr':
>   method   from
>   print.cache_info httr

Can these be suppressed?

Thanks,

-Roy

**
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.

--- End Message ---
__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel