Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Adopath


From   Fred Wolfe <[email protected]>
To   [email protected]
Subject   Re: st: Adopath
Date   Fri, 22 Jul 2005 10:15:10 -0500

Ahhhh.

Thanks.

At 09:55 AM 7/22/2005, you wrote:
Fred Wolfe <[email protected]> asks:

> I have a problem with ado paths that perhaps someone might help with.
>
> On my home machine
>
> . adopath
> [1] (UPDATES) "C:\Program Files\Stata9\ado\updates/"
> [2] (BASE) "C:\Program Files\Stata9\ado\base/"
> [3] (SITE) "C:\Program Files\Stata9\ado\site/"
> [4] "."
> [5] (PERSONAL) "c:\ado\personal/"
> [6] (PLUS) "c:\ado\stbplus/"
> [7] (OLDPLACE) "c:\ado/"
>
> I have this.
>
> On my office machine, I have a special problem. The office network has ados
> and data on the network. That allows everyone to have a common source of
> files. In general, they do not have "personal" ado.
>
> These users have the following path:
>
>
> [1] "//Fs-arc\statastuff\statdata\DataConvert/"
> [2] (UPDATES) "C:\Program Files\Stata9\ado\updates/"
> [3] (BASE) "C:\Program Files\Stata9\ado\base/"
> [4] (SITE) "C:\Program Files\Stata9\ado\site/"
> [5] "."
> [6] (PERSONAL) "c:\ado\personal/"
> [7] (PLUS) "c:\ado\stbplus/"
> [8] (OLDPLACE) "c:\ado/"
>
> [1] is the common set of ados
>
> This creates a problem when [1] contains an older ado file that is also in
> [BASE} as [1] executes first.
>
> I can easily do this:
>
> . adopath
> [1] (UPDATES) "C:\Program Files\Stata9\ado\updates/"
> [2] (BASE) "C:\Program Files\Stata9\ado\base/"
> [3] (SITE) "C:\Program Files\Stata9\ado\site/"
> [4] "."
> [5] (PERSONAL) "c:\ado\personal/"
> [6] (PLUS) "c:\ado\stbplus/"
> [7] (OLDPLACE) "c:\ado/"
> [8] "//Fs-arc\statastuff\statdata\DataConvert/"
>
> But what I really need to do is to do is to have
>
> "//Fs-arc\statastuff\statdata\DataConvert/"
>
> optionally come before or after [5] (PERSONAL) "c:\ado\personal/"
> , but always after:
>
> [1] (UPDATES) "C:\Program Files\Stata9\ado\updates/"
> [2] (BASE) "C:\Program Files\Stata9\ado\base/"
> [3] (SITE) "C:\Program Files\Stata9\ado\site/"
>
> I don't see a clear way to do that with the commands in help adopath.

It seems to me that you can use the ++ argument in conjunction with
the key words "SITE" "BASE" "UPDATE" to do what you want.

On my computer I did the following:

. adopath
[1] (UPDATES) "/usr/local/stata9/ado/updates/"
[2] (BASE) "/usr/local/stata9/ado/base/"
[3] (SITE) "/usr/local/ado/"
[4] "."
[5] (PERSONAL) "~/ado/personal/"
[6] (PLUS) "~/ado/stbplus/"
[7] (OLDPLACE) "~/ado/"

which shows what I have by default. I now add some directory to
the front of my list

. adopath ++ somewhere/important
[1] "somewhere/important"
[2] (UPDATES) "/usr/local/stata9/ado/updates/"
[3] (BASE) "/usr/local/stata9/ado/base/"
[4] (SITE) "/usr/local/ado/"
[5] "."
[6] (PERSONAL) "~/ado/personal/"
[7] (PLUS) "~/ado/stbplus/"
[8] (OLDPLACE) "~/ado/"

And now I add back to the front of the list the SITE, BASE, and
UPDATES so that the order is right.

. adopath ++ SITE
[1] (SITE) "/usr/local/ado/"
[2] "somewhere/important"
[3] (UPDATES) "/usr/local/stata9/ado/updates/"
[4] (BASE) "/usr/local/stata9/ado/base/"
[5] "."
[6] (PERSONAL) "~/ado/personal/"
[7] (PLUS) "~/ado/stbplus/"
[8] (OLDPLACE) "~/ado/"

. adopath ++ BASE
[1] (BASE) "/usr/local/stata9/ado/base/"
[2] (SITE) "/usr/local/ado/"
[3] "somewhere/important"
[4] (UPDATES) "/usr/local/stata9/ado/updates/"
[5] "."
[6] (PERSONAL) "~/ado/personal/"
[7] (PLUS) "~/ado/stbplus/"
[8] (OLDPLACE) "~/ado/"

. adopath ++ UPDATES
[1] (UPDATES) "/usr/local/stata9/ado/updates/"
[2] (BASE) "/usr/local/stata9/ado/base/"
[3] (SITE) "/usr/local/ado/"
[4] "somewhere/important"
[5] "."
[6] (PERSONAL) "~/ado/personal/"
[7] (PLUS) "~/ado/stbplus/"
[8] (OLDPLACE) "~/ado/"

Ken Higbee [email protected]
StataCorp 1-800-STATAPC
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/

Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125     Fax (316) 263-0761
[email protected]


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index