Stata 15 help for adopath

[P] sysdir -- Query and set system directories

Syntax

List Stata's system directories

sysdir [list]

Reset Stata's system directories

sysdir set codeword ["]path["]

Display path of PERSONAL directory and list files in it

personal [dir]

Display ado-file path

adopath

Add directory to end of ado-path

adopath + path_or_codeword

Add directory to beginning of ado-path

adopath ++ path_or_codeword

Remove directory from ado-path

adopath - { path_or_codeword | # }

Set maximum memory ado-files may consume

set adosize # [, permanently ] 10 < # < 10000

where path must be enclosed in double quotes if it contains blanks or other special characters and codeword is

{ STATA | BASE | SITE | PLUS | PERSONAL | OLDPLACE }

Description

sysdir lists Stata's system directories.

sysdir set changes the path to Stata's system directories.

personal displays the path of the PERSONAL directory. personal dir gives a directory listing of the files contained in the PERSONAL directory.

adopath displays the ado-file path stored in the global macro S_ADO.

adopath + adds a new directory or moves an existing directory to the end of the search path stored in the global macro S_ADO.

adopath ++ adds a new directory or moves an existing directory to the beginning of the search path stored in the global macro S_ADO.

adopath - removes a directory from the search path stored in the global macro S_ADO.

set adosize sets the maximum amount of memory in kilobytes that automatically loaded do-files may consume. The default is set adosize 1000. To view the current setting, type display c(adosize).

These commands have to do with technical aspects of Stata's implementation. Except for sysdir list, you should never have to use them.

Option

permanently specifies that, in addition to making the change right now, the adosize setting be remembered and become the default setting when you invoke Stata.

Examples

List Stata's system directories . sysdir list

Display identity of PERSONAL directory . personal

List files in PERSONAL directory . personal dir

Display ado-file path . adopath

Add C:\myprogs to the end of the ado-path . adopath + C:\myprogs

Remove C:\myprogs from the ado-path . adopath - C:\myprogs


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index