[1] ****************************************************************** **## 0.2 - Check if any required packages are installed ****************************************************************** [2] * install packages if global is set to 1 if $pack == 1 [3] { [4] loc userpack = "blindschemes estout palettes distinct catplot colrspace coefplot" [5] * install packages that are on ssc foreach package in `userpack' { capture : which `package', all if (_rc) { capture window stopbox rusure "You are missing some packages." "Do you want to install `package'?" if _rc == 0 { capture ssc install `package', replace if (_rc) { window stopbox rusure `"This package is not on SSC. Do you want to proceed without it?"' } } else { exit 199 } } } [6] * update all ado files ado update, update * set graph and Stata preferences set scheme plotplain, perm set more off }