[Rd] No warning for conflicting methods?

Hadley Wickham h.wickham at gmail.com
Wed Oct 9 22:21:40 CEST 2013


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/



More information about the R-devel mailing list