Skip to contents

Get filepaths of given type, possibly recursively

Usage

get_files_of_type(ftype = "[.]Rmd|qmd$", indir, depth = 1)

get_rmd_qmd(ftype = "[.]Rmd|qmd$", indir, depth = 1)

Arguments

ftype

Filetype regexp, defaults to '.Rmd|qmd$'

indir

Directory to begin search in

depth

Recursion depth, defaults to 1 (ie inside subfolders)

Value

Vector of file paths

Examples

if (FALSE) { # \dontrun{
if(interactive()){
 #EXAMPLE1
 }
} # }
if (FALSE) { # \dontrun{
if(interactive()){
 get_rmd_qmd()
 }
 } # }