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   [email protected] (William Gould, Stata)
To   [email protected]
Subject   Re: st: Distributing Mata .mlib libraries from user sites
Date   Tue, 28 Jun 2005 15:52:55 -0500

Roger Newson <[email protected]> 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

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
[email protected]
*   For searches and help try:

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