Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Build's Stata project's mlib of local mata files
* all mata objects used across files (or even just all)
* Should be made into an mlib so you don't have to worry
* about including multiple times.
* This should also help a bit with speed.
*Possibly get some project-specific settings
*qui include
* Load all the mata files in ado/
local mata_files : dir "ado" files "*.mata"
foreach mata_file in `mata_files'{
do "ado/`mata_file'"
mata mlib create lproject, replace dir("../code/ado/l")
mata mlib add lproject *()
mata mlib index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment