My Stata miscellaneous .ado programs I use.
Pull into my local project directory:
cd <project_path>
git clone https://github.com/LSYS/stata-utils.gitThen in the relevant/master do file, add:
adopath ++ ./stata-utilsor
adopath ++ <project_path>/stata-utils-
setup.adosets up multiple required packages.Simple example:
local req reghdfe coefplot addplot setup "`req'"
Example with a stata-requirements.txt.
stata-requirements.txt as an example plain text file:
reghdfe coefplot addplotRead
stata-requirements.txtinto local macrotxt2macro stata-requirements.txt local req `r(mymacro)'
and install packages listed in
stata-requirements.txtsetup "`req'"(Works like
pip install -r requirements.txt)