find_folder_function_definitions {assertHE}R Documentation

Creates summary of R files in folder with functions defined within and locations.

Description

Applies find_function_definitions to each file in a folder and aggregate results

Usage

find_folder_function_definitions(
  foo_folder = ".",
  f_excl = NULL,
  d_excl = NULL
)

Arguments

foo_folder

A folder to apply find_function_definitions to each script in.

f_excl

A regular expression for files to NOT process (basename)

d_excl

A regular expression for directories to NOT process (dirname)

Value

A dataframe containing a column for function string and a column for function location.

Examples

# Skip listed files "somefile.R", and "another_file.R"
folder_path <- assertHE_example("example_project")
find_folder_function_definitions(
   foo_folder = folder_path,
   f_excl = "\\b(somefile\\.R|another_file\\.R)\\b"
)


[Package assertHE version 1.0.0 Index]