dirs.file_exists: Find if a file exists in the local library

Description Usage Arguments Details Value Examples

Description

dirs.file_exists

Usage

1
2
dirs.file_exists(name_hint = NULL, file_type = NULL,
  return_file_only = FALSE)

Arguments

name_hint

string a hint or word contained in the file name.

file_type

string The extension of the file type

return_file_only

logical Should the reference data frame be returned or just the file names and paths.

Details

This will find and locate any file and allow for filtering by a name hint and a file extension type

Value

A data frame

Additionally or optionally a character vector of all returned files or if no items found a string of "No Files"

Examples

1
2
3
4
5
6
7
> dirs.file_exists(name_hint = "nvd3",file_type = "rhtml",TRUE)

# See if the icon reference data is present
> dirs.file_exists(name_hint = "icon",file_type = "rds",TRUE)

# All Files containing 'parse'
> dirs.file_exists("parse",return_file_only = TRUE)

Rterial/Rtbase documentation built on May 9, 2019, 10:35 a.m.