View source: R/source_directory.R
source_directory | R Documentation |
This function sources all the R scripts in a given directory by calling the source() function on each file with a ".R" extension. This function can be used to easily source all the scripts in a directory.
source_directory(dir_path, recursive = TRUE)
dir_path |
A character string specifying the path to the directory containing the R scripts to be sourced. |
recursive |
list recurisvely into the directory being sourced |
This function has no return value.
# Source all R scripts in the current working directory
source_directory(getwd())
# Source all R scripts in a specific directory
source_directory("/path/to/your/directory")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.