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 = "")

Arguments

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 file. The dot is to be included, e.g. .csv.

Value

A character vector.