From h.wickham at gmail.com  Wed Oct  9 22:21:40 2013
From: h.wickham at gmail.com (Hadley Wickham)
Date: Wed, 9 Oct 2013 15:21:40 -0500
Subject: [Rd] No warning for conflicting methods?
Message-ID: <CABdHhvEUJoJNAxe4HaDTvaY3=HVUpsnv2DLq1Lox0rLd6mMSOQ@mail.gmail.com>

It would be really nice if R warned you when packages had conflicting
methods. For example (and this took me a couple of hours to track
down), RMySQL and RPostgreSQL both define setMethod("print",
"dbObjectId"), so that:

library(RMySQL)
getMethod("print", "dbObjectId")

library(RPostgreSQL)
getMethod("print", "dbObjectId")

Obviously it's a bad idea to associate methods with classes that you
don't own, but it would be great if R could give some warning in this
situation.

Hadley

-- 
Chief Scientist, RStudio
http://had.co.nz/



[Rd] No warning for conflicting methods?
Hadley Wickham