files_filter {stRoke} | R Documentation |
This function filters files in a folder based on the provided filter.
files_filter(folder.path, filter.by, full.names = TRUE)
folder.path |
character. Path of the folder to be filtered |
filter.by |
character. Filter to be applied on the files |
full.names |
logical. Whether to return full file names or not |
character vector. Filtered files
# Gives path to files/folders with "tests" in the name in the
# working directory
files_filter(getwd(),"tests")