Skip to content
Prev 16946 / 21312 Next

[Bioc-devel] Deprecated a contained class

Pkg A provides a (virtual) class "Original".

Pkg B creates a derived class setClass("Derived", contains = "Original")

Pkg A would like to deprecate "Original" and replace with "New".

Any ideas on how to implement a deprecation message so that the Pkg B maintainer knows that their use of class Original is deprecated, but users aren't bothered by more-or-less incomprehensible messages on use? I guess using .Deprecated() somehow associated with setClass(); implementing something in initialize,Original-method would be too irritating to the user.

Thanks,

Martin