Skip to contents

Source files based upon regular expression searching

Usage

source_files(
  file_regx = ".R",
  path = ".",
  recursive = TRUE,
  exclude_files = NULL,
  exclude_dirs = NULL,
  funcs_only = FALSE,
  verbose = FALSE,
  keep_source = FALSE
)

Arguments

file_regx

= ".*" - a regular expression for files to source

path

= "." - a path to search

recursive

= TRUE - recurse into subdirectories

exclude_files

= NULL - regx for files to exclude

exclude_dirs

= NULL - regx for directories to exclude

funcs_only

= FALSE - source only identified functions, not the whole file

verbose

= FALSE - whether to emit the sourced files.

keep_source

= FALSE - whether to keep the source data when using source.

Value

list of files sourced

IMPORTANT !!!

sourcing this file is a mistake - may result in infinite recursion

Examples