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

RE: st: dealing with directories in.ado files


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: dealing with directories in.ado files
Date   Tue, 21 Jun 2005 13:23:15 +0100

Like Richard Williams, I am not clear on what you want to do, 
but some misunderstandings seem evident here. 

-preserve- and -restore- concern temporary saving 
and re-using of datasets. Matrices and scalars 
can't be saved with datasets. 

Stata automatically creates (and destroys) temporary
files in what it thinks is a sensible directory or folder. 
You needn't concern yourself with where that is. 

Alternatively, if for some purpose you need 
to make use of different directories or folders
then that is up to you and there is no correct way 
to do it independent of your purpose. 

Nick 
[email protected] 

NEYMOTIN, FLORENCE
 
> okay, the preserve-restore thing helps for the cases where 
> I'm building matrices with a subset of
> the data. I'm "assuming" that the matrices and scalars you 
> make when working with a different
> dataset are preserved for when you do the restore command.  
> If I WERE to want to keep part of the
> dataset around though (say I wanted to take a subset of the 
> data and then re-merge it with the
> ORIGINAL DATASET, then where would I keep the data from the 
> original one before doing the restore?
> i.e. if you do something for people to use in different 
> directories, then what path should be
> specified for this kind of thing?  thanks for your help.
 
> On Mon, 20 Jun 2005 16:44:24 -0500
>    Richard Williams <[email protected]> wrote:
> > At 02:15 PM 6/20/2005 -0700, Florence Neymotin wrote:
> >>Hi, I was wondering, if you are writing a .ado file to be 
> used as a stata
> >>add-on, then if you need to do a preserve restore, what is 
> the default to
> >>use as the directory for this?  I wasn't sure whether 
> "home" or the temp
> >>files associated with the stata program would be better here.
> >>Thank you,
> >>Florence
> >
> > I'm not sure I understand the question.  You do not have to 
> specify a directory when using
> >preserve and restore.  Further, I suspect Stata doesn't 
> write anything to disk, unless you have
> >allocated more memory than you have, but I could be wrong about that.
> >
> > If you are talking about where to store your own personally 
> written ado file, I imagine
> >c:\ado\personal (or whatever -adopath- tells you is the 
> "personal" directory) is probably the
> >most common place.
> >
> > If I'm not understanding you correctly, perhaps you could 
> clarify exactly what it is you want.

*
*   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