Re: [R] Adding a method to a generic in another package

2009-06-04 Thread Gabor Grothendieck
The zoo package has lattice methods and does not use require and it puts lattice in Imports in the DESCRIPTION file. If a user wants to the use the zoo lattice functions then they must issue a library(lattice) call. As a result users do not have to load lattice but if they want to use it they mus

Re: [R] Adding a method to a generic in another package

2009-06-04 Thread Uwe Ligges
Jeffrey J. Hallman wrote: I am the maintainer of the 'tis' package. One of the functions in my package is 'nberShade'. A user wants to make nberShade generic, with the old version renamed as nberShade.default, all of which is fine with me. And he wants to add a new method, nberShade.ggplot,