I have made all my functions into generics and methods on their respective classes.
But now what worked as functions no longer works.
Class bond.id
has no generic or methods.
It only holds variables that are passed to a
, b
, and c
, each of these all call bond.id@...
Fine no problem a
, b
, and c
work as they are supposed to using new(" ",...)
When everything was a function and not a method on a class the last step was a class(z)
that inherited a
, b
, and c
.
This worked.
But now when I setClass("z", contains = c(a, b, c))
I get the following error:
Error in .local(.Object, ...) : argument "bond.id" is missing, with no default
I am a little perplexed if a
, b
, c
are working why is the setClass
for z
behaving this way?