getRFiles | R Documentation |
This is a very simple wrapper for list.files
to get all the R files in a directory and, by default,
recursively for sub-directories.
This simply sets the defaults for a call to list.files
for R files.
getRFiles(dir, pattern = "\\.[RrSsQq]$", recursive = TRUE)
dir |
the path to the directory to search for R files |
pattern |
the pattern to identify the files of interest |
recursive |
a scalar logical controlling whether to process sub-directories and their sub-directories, etc. |
A character vector
Duncan Temple Lang
list.files
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.