代码拉取完成,页面将自动刷新
*! Date : 3sept2014
*! Version : 1.0
*! Author : Thomas Grund, Linkping University
*! Email : contact@nwcommands.org
capture program drop webnwuse
program webnwuse
syntax anything [, * nwclear]
`nwclear'
capture drop _running
local subcommand = word("`anything'",1)
local path = "\$nwwebpath"
local thispath = "`path'"
if "`subcommand'" != "set" {
if "`thispath'" == "" | "`thispath'" == "\" {
global nwwebpath = "http://nwcommands.org/data"
}
}
if "`subcommand'" == "set" {
local subcmd2 = word("`anything'",2)
if "`subcmd2'" == "" {
global nwwebpath = "http://nwcommands.org/data"
}
else {
global nwwebpath = word("`anything'",2)
}
exit
}
if "`subcommand'" == "query" {
di `"{txt}(prefix now "{bf:$nwwebpath}")"'
exit
}
local path = "\$nwwebpath"
local thispath = "`path'"
local webname = subinstr("`anything'", ".dta","",99)
if substr("`webname'",1,4) == "http" {
nwuse `webname', `options'
}
else {
nwuse `thispath'/`webname', `options'
}
qui nwload, labelonly
end
*! v1.5.0 __ 17 Sep 2015 __ 13:09:53
*! v1.5.1 __ 17 Sep 2015 __ 14:54:23
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。