In the wedge package I want as.spray(x) to return a spray object when x is a kform object. I can't do this nicely because as.spray() is not suitable for changing into a generic. It would be better to include the intelligent processing currently in as.spray() in function spray() and make as.spray() generic (and leave the class assignment in spraymaker()). That way, I could write as.spray.kform() in the wedge package.
In the wedge package I want
as.spray(x)
to return a spray object when x is a kform object. I can't do this nicely becauseas.spray()
is not suitable for changing into a generic. It would be better to include the intelligent processing currently inas.spray()
in functionspray()
and makeas.spray()
generic (and leave the class assignment inspraymaker()
). That way, I could writeas.spray.kform()
in the wedge package.