-
Notifications
You must be signed in to change notification settings - Fork 23
/
config_stata.do
42 lines (37 loc) · 1.34 KB
/
config_stata.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
clear all
set more off
program main
* *** Add required packages from SSC to this list ***
local ssc_packages ""
* *** Add required packages from SSC to this list ***
if !missing("`ssc_packages'") {
foreach pkg in "`ssc_packages'" {
* install using ssc, but avoid re-installing if already present
capture which `pkg'
if _rc == 111 {
dis "Installing `pkg'"
quietly ssc install `pkg', replace
}
}
}
* Install packages using net, but avoid re-installing if already present
capture which yaml
if _rc == 111 {
quietly net from "https://raw.githubusercontent.com/gslab-econ/stata-misc/master/"
quietly cap ado uninstall yaml
quietly net install yaml
}
* Install complicated packages : moremata (which cannot be tested for with which)
capture confirm file $adobase/plus/m/moremata.hlp
if _rc != 0 {
cap ado uninstall moremata
ssc install moremata
}
* Standard GSLAB stuff
quietly net from "https://raw.githubusercontent.com/gslab-econ/gslab_stata/master/gslab_misc/ado"
quietly cap net uninstall matrix_to_txt
quietly net install matrix_to_txt
quietly cap net uninstall preliminaries
quietly net install preliminaries
end
main