Skip to content
Prev 3979 / 12125 Next

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

On 18/05/2019 4:03 p.m., Duncan Murdoch wrote:
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