When you add a new method to a generic defined in another package, you need to first import that generic. This makes it easy to get stuck in a state (e.g. https://github.com/ThierryO/testS4) that you can't easily get out without modifying the NAMESPACE by hand.
One solution would be to have a separate roclet that works like collate. I think the translation from all the import directives is straightforward, so this should work. (But it can't do all namespace directives because @export definitely needs the loaded code)
When you add a new method to a generic defined in another package, you need to first import that generic. This makes it easy to get stuck in a state (e.g. https://github.com/ThierryO/testS4) that you can't easily get out without modifying the
NAMESPACEby hand.One solution would be to have a separate roclet that works like
collate. I think the translation from all the import directives is straightforward, so this should work. (But it can't do all namespace directives because@exportdefinitely needs the loaded code)