pkgdatasource_path: Return the path of a package data source

View source: R/read_textdata.R

pkgdatasource_pathR Documentation

Return the path of a package data source

Description

Returns the path for a given file basename in a package. The developer can optionally provide the file's extension separately.

Usage

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.


inbo/n2khab documentation built on Jan. 15, 2025, 9:36 a.m.