Collecting paths of some specified files that you want to import or read.

Description

If you want to collect all files under certain folder, this function should be the perfect one. It will collect all files with certain name. Then this function will return a list will all paths of those files so that further import or read is feasible.

Usage

1
getSfilesPath(root.path, filename)

Arguments

root.path

is the root path including all folders and files that you would like to search.

filename

is the name of files that you want to collect.

Value

The whole paths of all files that meet the criteria were saved as a list.

Examples

1
getSfilesPath(root.path = R.home(), filename = "?.exe")