I have defined a new stat and geom, which I'm trying to wrap in a package. I want to export only the accessing functions stat_foo and geom_foo, and not the underlying proto object StatFoo and GeomFoo (i.e. the same behaviour as ggplot2 itself), however when I try to use the stat, I get the error: "Error: No geom called foo" (and vice-versa if I call the geom). The error seems to be cause by the "find" method in the TopLevel proto, as it only searches it's accessible functions. I've tried adding a "find" method to my protos, hoping this would overwrite the default one, but this didn't seem to help. Any ideas?
-Simon