There seems to be a problem with installation of software packages that have auxiliary files. I am not sure if what I describe below, and alluded to in a recent topic, is new behavior, or just something that's becoming more apparent (to me?) over time.
Auxiliary files obtained via a net get command (rather than as part of a net install command) are copied into Stata's "net other" directory specified by net set other rather than into Stata's PLUS directory. This makes sense when the auxiliary files are sample data, but not so much when they're necessary for the functioning of the package, as they are for markstat (from SCC) and zanthro (from SJ) to name two I've seen problems with in the last few weeks. The default for the "net other" directory is the user's current directory, and any setting to another directory is not retained from session to session of Stata.
Here's an example using markstat installation. (Note that this example is functionally equivalent to using search markstat, clicking to open the description in the Viewer window, and clicking on the two "click here" links in the Viewer window.)
So you see that the auxiliary files have been installed into my current working directory, rather than into the PLUS directory, where a findfile command would locate them (a technique used by zanthro).
I'm not a developer, so I can't take this any farther - I'm past the limits of my knowledge here, and am only writing this because I've seen users stumble over this twice in recent weeks.
Auxiliary files obtained via a net get command (rather than as part of a net install command) are copied into Stata's "net other" directory specified by net set other rather than into Stata's PLUS directory. This makes sense when the auxiliary files are sample data, but not so much when they're necessary for the functioning of the package, as they are for markstat (from SCC) and zanthro (from SJ) to name two I've seen problems with in the last few weeks. The default for the "net other" directory is the user's current directory, and any setting to another directory is not retained from session to session of Stata.
Here's an example using markstat installation. (Note that this example is functionally equivalent to using search markstat, clicking to open the description in the Viewer window, and clicking on the two "click here" links in the Viewer window.)
Code:
. net query from http://www.stata.com ado /Users/lisowskiw/Library/Application Support/Stata/ado/plus/ other (current directory) . net describe markstat, from(http://fmwww.bc.edu/RePEc/bocode/m) ------------------------------------------------------------------------------------------------ package markstat from http://fmwww.bc.edu/RePEc/bocode/m ------------------------------------------------------------------------------------------------ TITLE 'MARKSTAT': module to support literate data analysis using Stata and Markdown ... INSTALLATION FILES (type net install markstat) markstat.ado markstat.sthlp ANCILLARY FILES (type net get markstat) markstat.css markstat.docx markstats5.zip ------------------------------------------------------------------------------------------------ . net query from http://fmwww.bc.edu/RePEc/bocode/m/ ado /Users/lisowskiw/Library/Application Support/Stata/ado/plus/ other (current directory) . net install markstat checking markstat consistency and verifying not already installed... installing into /Users/lisowskiw/Library/Application Support/Stata/ado/plus/... installation complete. . net get markstat checking markstat consistency and verifying not already installed... copying into current directory... copying markstat.css copying markstat.docx copying markstats5.zip ancillary files successfully copied. . . pwd /Users/lisowskiw/Research/Statalist . dir markstat* -rw-r--r-- 1 lisowskiw staff 1645 Dec 12 20:10 markstat.css -rw-r--r-- 1 lisowskiw staff 14871 Dec 12 20:10 markstat.docx -rw-r--r-- 1 lisowskiw staff 27758 Dec 12 20:10 markstats5.zip .
I'm not a developer, so I can't take this any farther - I'm past the limits of my knowledge here, and am only writing this because I've seen users stumble over this twice in recent weeks.
Comment