Description Usage Arguments Details Value Author(s)
Sources all files with '.R' or '.r' extensions in a directory using a try-catch for each file
1 |
directory |
Character string indicating the path of the directory containing the R files to be sourced. |
recursive |
|
tryCatch |
if |
... |
Additional arguments to |
In addition to sourcing files for general use, this function is also useful in package development to verify there are no syntax errors prior to building and compilation.
Invisibly returns a character vector containing the files that were identified for sourcing. Also prints a message indicating whether each file was sourced correctly or not.
Landon Sego
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.