Created
November 20, 2014 04:15
-
-
Save bquistorff/666f96b74e0e3eea2a0a to your computer and use it in GitHub Desktop.
Build's Stata project's mlib of local mata files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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