fetch_all_filepaths_named: Retrieve all files of a given type from a directory

View source: R/files.R

fetch_all_filepaths_namedR Documentation

Retrieve all files of a given type from a directory

Description

Lists files in a directory whose names have a certain file extension.

Usage

fetch_all_filepaths_named(dir, file.ext = "R")

Arguments

dir

character vector of directory path

file.ext

The file extension; defaults to R

Value

A character vector whose elements are the full paths of the found files. If none is found, character(0).

Note

For the RAAMP-GBV RStudio project, the root directory is set to the project directory.


BroVic/jGBV documentation built on Oct. 9, 2022, 6:38 a.m.