I am working on extending a class in a pre-existing package (xcms) in R. What I would like to do is include my class in the package after loading the package since there are non-exported methods in the package my extended class will need to use. Example below.
Package xcms
Class to extend foo
Extended class foo2
Now I want to be able to do the following:
library(xcms)
setClass(foo2,....)
'define functions of foo2'
'insert foo2 into xcms somehow so it can see all of the non-exported functions and classes'
Cole