Closed bquast closed 8 years ago
I'm not sure if it's possible to override an existing method for a generic function once all the packages are loaded. The order of loading the packages can override generic functions but this doesn't seem to be true for methods. I found a post on StackOverflow (http://stackoverflow.com/questions/13997122/override-s3-methods-in-base-r) that suggests creating a different class to override an existing method, which is kind of relevant to the problem here. It seems simpler from a programming perspective just to create a new generic function that has methods that don't conflict with methods for the same class with another generic.
Method dispatch and namespaces confuse the hell out of me so I'm open to suggestions.
As you point out in your article:
the default plotting method for the neuralnet package is not ideal.
Wouldn't it be easier to just name the method
so that it overrides the included neuralnet plotting method. that way we could just: