get_pattern_file: Get path for a file found thanks to a pattern.

View source: R/inputs_outputs.R

get_pattern_fileR Documentation

Get path for a file found thanks to a pattern.

Description

Get path for a file found thanks to a pattern.

Usage

get_pattern_file(dir_path, pattern, only_name = FALSE)

Arguments

dir_path

A file.path indicating the directory in which to look for the file.

pattern

A string indicating the pattern used to find the file.

only_name

A boolean indicating whether to return the full path or only the name of the file.

Value

A string with the found file path or NA if not found.


eMetaboHUB/MS-CleanR documentation built on Jan. 3, 2024, 8:55 p.m.