How to include data files with ado packages in Stata

If I publish the .ado package for Stata, I can include the .dta files among the installation files in the .pkg description file using the following line:

f amazingdata.dta

However, it is unclear how, besides navigating the external directory for custom add-on packages, how users can download this data. For example, is there a way to make data files for .ado files available with commands such as:

. sysuse amazingdata
+4
source share
2 answers

You found the documentation for the package files, so the first question is whether sysusethe user installs with the packages, and the short answer is the underlined number

sysuse Stata , StataCorp . , , sysuse , , Stata.

, . Stata , , , , , net get. , .

. StataCorp . , , .., , . , Stata "", , StataCorp, .

, sysuse , , , Stata, Stata .

" ", . , , , , , , . net get , , , . adopath, Stata , .

+4

, , , Stata. , , , . , , , , use amazingdata. . !

0

Source: https://habr.com/ru/post/1535316/


All Articles