Code as,
setClass("tst",representation(mat="matrix", Distmat="dist"))
When building it, there is a warning as,
Warning: undefined slot classes in definition of “tst”: Distmat(class “dist”)
How to make the class of slot Distmat
as dist
?
Update The answer is as Martin's comment
Update2: When BiocCheck this package. it appears:
the specification for S3 class “dist” in package ‘tst’ seems equivalent to
one from package ‘graph : not turning on duplicate class definitions for this
class.
It seems setOldClass is not recommended if an object exists in an S4 Class. Any solution?