locate: Find Data Files

View source: R/locate.R

locateR Documentation

Find Data Files

Description

Searches for the path(s) and name of package data file(s).

Usage

locate(x, ...)

## Default S3 method:
locate(x, file, path, package, keywords, full.names = TRUE, ...)

Arguments

x

Not used.

...

Not used.

file

Character string(s) specifying the files, including regular expressions, to search for in the file name.

path

Character string specifying the file path to search.

package

Character string specifying the package name.

keywords

Character string specifying keywords that the path and file names must contain.

full.names

Logical value specifying whether to return the path names along with the file names.

Value

Character vector.

Methods (by class)

  • locate(default): Default function to locate data files.

See Also

grep

Examples

## Not run: 
locate(package = "gulf.data", file = "species.csv")
locate(package = "gulf.data", file = "*.csv")

## End(Not run)


TobieSurette/gulf.utils documentation built on Dec. 1, 2024, 6:01 a.m.