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

Re: st: Distributing Mata .mlib libraries from user sites


From   wgould@stata.com (William Gould, Stata)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Distributing Mata .mlib libraries from user sites
Date   Tue, 28 Jun 2005 15:52:55 -0500

Roger Newson <roger.newson@kcl.ac.uk> asked about distributing user-written
Mata libraries, and in particular, about the -mata mlib index-
command, his question being

> However, if I distribute a .mlib library as part of one of my Stata packages
> (on SSC or on my website). and a user downloads the package and wants to use
> it immediately, then does the user have to actively type -mata mlib index-

I wanted to say no, the user does not have to do this, but I just checked 
the code, and the answer is "Yes, the user must" because we forgot to set an
internal flag after -update- and after -net install-.  I have listed this as a
bug.

Hence, right now, a user must type -mata mata mlib index- after after loading
a new .mlib library, or they must exit and restart Stata.  The problem is
only with the session during which the new library was loaded.  In all future
sessions, the indexing takes care of itself, and we will get the
current-session indexing fixed.

-- Bill
wgould@stata.com
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index