Skip to content

Instantly share code, notes, and snippets.

@bquistorff
Created November 20, 2014 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bquistorff/666f96b74e0e3eea2a0a to your computer and use it in GitHub Desktop.
Save bquistorff/666f96b74e0e3eea2a0a to your computer and use it in GitHub Desktop.
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 ....do
* 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:
mata mlib create lproject, replace dir("../code/ado/l")
mata mlib add lproject *()
mata mlib index
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment