klutometis/roxygen — Issue #68: Automatically generate imports for S4 classes
Author: hadley
Created: 2012-01-02 15:15:33+00:00
State: open

(From Michael Lawrence)

If a class is included in a method signature, or is passed in "contains" to setClass(), and it is not defined within the package, Roxygen should search the dependent packages for a class of the same name and generate an importClassesFrom() directive. User should be able to override, just in case it picks the wrong package.

When a method is defined for a generic not defined in the package, search the dependencies and importFrom() it.