the documentation says
This function parses all .R files in the application directory to determine what packages the application depends on; and for each of those packages what other packages they depend on.
and
Dependencies are determined by parsing application source code and looking for calls to library, require, ::, and :::.
if you are looking at code that assumes libraries are attached and never mentions their name spaces, then I think you will be out of luck from automated tools.