⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 which.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 18mar2005}{...}
{cmd:help which}
{hline}

{title:Title}

{p2colset 5 18 20 2}{...}
{p2col :{hi:[R] which} {hline 2}}Display location and version of an ado-file
{p_end}
{p2colreset}{...}


{title:Syntax}

{p 8 20 2}
{cmd:which} {it:fname}[{cmd:.}{it:ftype}] [{cmd:,} {cmd:all}]


{title:Description}

{pstd}
{cmd:which} looks for file {it:fname}{cmd:.}{it:ftype} along the {hi:S_ADO}
path.  If Stata finds the file, {cmd:which} displays the full path and
filename, along with, if the file is ASCII, all lines in the file that begin
with "{hi:*!}" in the first column.  If Stata cannot find the file, {cmd:which}
issues the message "{err:file not found along path}" and sets the return code
to 111.  {it:ftype} must be a file type for which Stata usually looks along
the ado-path to find it.  Allowable {it:ftypes} are

{p 8 8}
{cmd:.ado}, {cmd:.class}, {cmd:.dlg}, {cmd:.ihlp}, {cmd:.hlp}, {cmd:.idlg},
{cmd:.key}, {cmd:.mata}, {cmd:.mlib}, {cmd:.mo}, {cmd:.mnu}, {cmd:.plugin},
{cmd:.scheme}, and {cmd:.style}

{pstd}
If {it:ftype} is omitted, {cmd:which} assumes {hi:.ado}.  When searching for
{hi:.ado} files, if Stata cannot find the file, Stata then checks to see
if {it:fname} is a built-in Stata command, allowing for valid abbreviations.
If it is, a message "{res:built-in command}" is displayed; if not, the
message "{err:command not found as either built-in or ado-file}" is displayed
and the return code is set to 111.

{pstd}
For information on internal version control, see {helpb version}.


{title:Option}

{phang}
{cmd:all} forces {cmd:which} to report the location of all files matching the
{it:fname}{cmd:.}{it:ftype} found along the search path.  The default is to
report just the first one found.


{title:Example}

{pstd}
If we type {cmd:which} {it:command}, where {it:command} is a built-in command
rather than an ado-file, Stata responds with

        {cmd:.which summarize}
        built-in command:  summarize

{pstd}
If {it:command} was not either a built-in command or an ado-file, Stata would
respond with

        {cmd:.which junk}
        command junk not found as either built-in or ado-file
        r(111);


{title:Also see}

{psee}
Manual:  {bf:[R] which}{p_end}

{psee}
Online:  {helpb findfile}, {helpb unab}, {helpb version}
{p_end}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -