[Rd] Avoid warning in a foreign package (maptools) when loaded via depends

From: Thaler, Thorn, LAUSANNE, Applied Mathematics <Thorn.Thaler_at_rdls.nestle.com>
Date: Thu, 11 Nov 2010 11:20:11 +0100


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]]



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 11 Nov 2010 - 10:30:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 11 Nov 2010 - 12:20:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive