dta_path() provides the file path to the example dataset
dta-data.xlsx included in the package. The dataset is located in the
extdata directory of the package.
Value
A string containing the full file path to the dataset within the package. If the file does not exist, it returns an empty string.
Details
The function uses system.file to construct the path to
the extdata/dta-data.xlsx file included in the package. This is
useful for accessing built-in example files.