Skip to contents

Get filepaths of given type, possibly recursively

Usage

get_files_of_type(ftype = "*.Rmd", indir, depth = 1)

Arguments

ftype

Filetype glob, defaults to '*.Rmd'

indir

Directory to begin search in

depth

Recursion depth, defaults to 1 (ie inside subfolders)

Value

Vector of file paths

Examples

if (FALSE) {
if(interactive()){
 #EXAMPLE1
 }
}