代码拉取完成,页面将自动刷新
同步操作将从 songbl/stata_ado 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
* Authors:
* Program written by Bolin, Song (松柏林) Shenzhen , China.
* Wechat:songbl_stata, 2021-01-02
* Please do not use this code for commerical purpose
capture program drop sbl
program define sbl
version 15.0
syntax anything (name = pkgname )
tokenize `pkgname'
if "`2'"!= ""{
di as err `"sbl install: "`pkgname'" not found at SBL, type {stata ssc install `pkgname'}"'
exit 601
}
local URL "https://gitee.com/songbolin/stata_ado/raw/master/"
local PATH `"`c(sysdir_plus)'"'
local path =substr("`pkgname'",1,1)
local PATH `PATH'\`path'\
cap mkdir `"`PATH'"'
cap copy "`URL'`pkgname'.ado" "`PATH'\`pkgname'.ado" ,replace
while _rc ~= 0 {
local times = `times' + 1
sleep 1000
cap copy "`URL'`pkgname'.ado" "`PATH'\`pkgname'.ado" ,replace
if `times' > 10 {
di as err `"sbl install: "`pkgname'" not found at SBL, type {stata ssc install `pkgname'}"'
exit 601
}
}
local cla hlp sthlp
foreach j in `cla'{
cap copy "`URL'`pkgname'.`j'" "`PATH'\`pkgname'.`j'" ,replace
}
cap copy "`URL'cn_`pkgname'.sthlp" "`PATH'cn_`pkgname'.sthlp" ,replace
dis as yellow "The download is complete"
*local cla c class css csv dir dlg do docx dta hlp html idlg ihlp ini ///
*js mata mlib mo pkl plu plugin png pref py sas scheme stbcal sthlp style ///
*tex txt zip
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。