With thanks as usual to Kit Baum, a new package called whichpkg is available on SSC. whichpkg is essentially an extension to Stata's official which command. It requires Stata 9 or higher.
whichpkg displays information on all the components of an installed Stata package, including any duplicate files. For each component file of the package, whichpkg displays the full path and filename plus (if the file is text format) all lines starting with "*!". For example,
Basically ... I wrote this because I kept getting bitten by Mata mlib files that were floating around on my machine and that I didn't realize I had. I'd update a package but the new features didn't appear to work. The reason would be a second mlib that I'd forgotten about and that was being found on the search path before the new/correct one. I would try to be careful about multiple versions of programs by using Stata's which command with the all option to look for the main (ado) program in the package, but that would of course not report on any associated mlibs. Hence ... whichpkg.
whichpkg displays information on all the components of an installed Stata package, including any duplicate files. For each component file of the package, whichpkg displays the full path and filename plus (if the file is text format) all lines starting with "*!". For example,
Code:
. whichpkg xtabond2 All instances on search path of components of package xtabond2.pkg: C:\ado\plus\x\xtabond2.ado *! xtabond2 3.6.1 5 December 2014 *! David Roodman *! Copyright David Roodman 2004-14. May be distributed free. C:\ado\plus\x\xtabond2.mata C:\ado\plus\x\xtabond2.hlp C:\ado\plus\x\xtab2_p.ado *! version 3.6.1 5 December 2014 *! David Roodman, [email protected] C:\ado\plus\l\lxtabond2.mlib
Comment