[Rd] require or import methods?

From: Roger D. Peng <rpeng_at_jhsph.edu>
Date: Sat 21 Aug 2004 - 00:49:47 EST

I'm developing a package now that creates some S4 classes/methods (hence, uses `methods') and also has a namespace. I'm a little confused over whether I should be importing `methods' or require()-ing it. It seems to me that `methods' should be imported since it is needed for setGeneric, setMethod, etc. But, a person using my package will probably want `methods' on the search path in order to use functions like as() or is(). In this case, should I just require `methods' by putting it in the Depends: field (for R >= 2.0.0) and not bother importing the namespace?


R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Aug 21 00:53:43 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 08:59:21 EST