Description Usage Arguments See Also Examples
View source: R/load_all_code.R
Load all R files in a library directory.
1 2 3 4 5 6 7 8 | load_all_code(
lib_dir = "lib",
exclude_files = c("function_library.R"),
file_pattern = "\\.R$",
recursive = T,
verbose = T,
envir = .GlobalEnv
)
|
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. Defaults to TRUE. |
verbose |
If TRUE display additional output during execution. |
envir |
Environment in which to run the code; .GlobalEnv by default, but baseenv() is a good option to force package references. |
sys.source, source
1 2 3 4 | library(ck37r)
# Here R is a subdirectory with a bunch of .R files to load.
load_all_code("R")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.