Closed leeper closed 7 years ago
I am not sure there is a good solution to this within the scope of this package; not one that come immediately to my mind anyways. It is a good point, however.
devtools
already overrides help
and ?
-- a clean solution would be a package that does the same but supports more generic hooks, which devtools
and import
and perhaps others could use.
Made a small solution for this via https://github.com/smbache/import/commit/0c2cb834b686f567349420345a86f5bd43a108ac
it places a ?
function in the imports entry in the search path, and redirects if the symbol is an import. Otherwise, it redirects to utils::?
.
I'm assuming you've seen this SO question?
My answer there led me to realize that maintaining accessible documentation when creating a function alias is really hard. I'd love to see a solution for this inside this package so as to avoid the following: