[Rd] Coercing from a local class to a foreign one

From: Sean Davis <sdavis2_at_mail.nih.gov>
Date: Thu 22 Dec 2005 - 12:35:32 GMT

I am working on writing a fairly simple package that defines several classes. However, there are several other packages that deal with the same types of data, so I would like to methods for coercing my classes to those of the other packages. Easy enough. However, I would really like to just "suggest" those other packages, as my own doesn't rely on them at all. If I do so and the other packages are not available and loaded, I get warnings on loading my own package that the classes from the foreign packages are not available. I understand that these messages are not significant, but is there a way to suppress them on loading. As far as I can tell, this is specific to S4 coercion methods where the classes to coerce to or from may not be loaded or defined at the time of loading a package.

Any hints? (In other words, what did I miss in the documentation....)


R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu Dec 22 23:43:19 2005

This archive was generated by hypermail 2.1.8 : Thu 22 Dec 2005 - 21:23:54 GMT