load_all_code: Load all R files in a library directory.

Description Usage Arguments Examples

View source: R/load_all_code.R

Description

Load all R files in a library directory.

Usage

1
2
load_all_code(lib_dir = "lib", exclude_files = c("function_library.R"),
  file_pattern = "\\.R$", recursive = T, verbose = T)

Arguments

lib_dir

Directory contains the source code files.

exclude_files

Exclude a list of files; exclude function_library.R by default because we presume that is the main R library file.

file_pattern

Regular expression for files to load, defaults to *.R

recursive

If TRUE also recurse into subdirectories.

verbose

If TRUE display additional output during execution.

Examples

1
2
3
4
library(ck37r)

# Here R is a subdirectory with a bunch of .R files to load.
load_all_code("R")

ck37r documentation built on June 4, 2017, 1:02 a.m.