Scans a function and determines what functions it uses from other packages.
auto_imports(f, imported = NULL, imports = NULL)
f
- this is only useful for interactive use.auto_imports
will attempted to determine automatically by inspecting the the
DESCRIPTION of the package that f
belongs to.@importFrom
.
The only exception is if a function of that name exists in the same
environment as f: in that case, no import statement will be generated.All packages (including recommend packages like stats and graphics) need explicit imports in the NAMESPACE file. The only exception is the base package.