Returns the path for a given file basename in a package. The developer can optionally provide the file's extension separately.
pkgdatasource_path(file, extension = "")
| file | The filename of the data source. Can be without extension. Can be a character vector. |
|---|---|
| extension | The extension of a file if not provided by |
A character vector.