Thaler, Thorn, LAUSANNE, Applied Mathematics
2010-Nov-11 10:20 UTC
[Rd] Avoid warning in a foreign package (maptools) when loaded via depends
Hi everybody, Currently I'm in the process of developing an R library, where I make use of "pointLabel" in the "maptools" package. I've defined the dependency on package "maptools" via the DESCRIPTION file in the root directory of my library. Since the loading of package "maptools" issues a warning, "R CMD check" complains about this uncaught warning:> library(maptools)Loading required package: foreign Loading required package: sp Attaching package: 'maptools' The following object(s) are masked from package:sp : spChFIDs Warning message: Multiple methods tables found for 'spChFIDs' If I tried to circumvent this warning in usual R code, I would do something like suppressWarning(library(maptools)) However, this is not an option as the library is loaded via the depends command. Can anybody advise me what do do? Thanks + BR, Thorn [[alternative HTML version deleted]]