From hb at biostat.ucsf.edu  Sat Nov 15 03:57:48 2014
From: hb at biostat.ucsf.edu (Henrik Bengtsson)
Date: Fri, 14 Nov 2014 18:57:48 -0800
Subject: [Rd] Code tools for identifying which package A functions package B
	use?
Message-ID: <CAFDcVCQeSbJ29+Ou7szGFj=b1WiOr6junuyarW3oF7z3L1uT9g@mail.gmail.com>

Hi,

I'd like to list all package PkgA functions that another package PkgB
use via Depends or Imports (ignoring Suggests for simplicity).  As
long as PkgB uses importFrom("PkgA", ...) it's just a matter of
parsing the NAMESPACE file or inspecting
asNamespace("PkgB")$.__NAMESPACE__.$imports.  However, what can be
done in case PkgB uses import("PkgA")?  Is there a function/package
already available for this?

Thanks,

Henrik



[Rd] Code tools for identifying which package A functions package B use?
Henrik Bengtsson