get_files_of_type: Get vector of filepaths

View source: R/utility_functions.r

get_files_of_typeR Documentation

Get vector of filepaths

Description

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

## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)
## Not run: 
if(interactive()){
 get_rmd_qmd()
 }
 
## End(Not run)

kjhealy/kjhslides documentation built on Dec. 30, 2024, 10:30 p.m.