powered by
Helper function to explore the number of files in a directory, recursively.
count_files(project_dir, subset = NULL, subset_type = "keep")
A data frame with number of files in a directory
Character. Directory where project files are stored. File paths will be used to extract information and must actually exist.
Character. Text pattern to mark a subset of files/directories to either "keep" or "omit" (see subset_type)
"keep"
"omit"
subset_type
Character. Either keep (default) or omit files/directories which match the pattern in subset.
keep
omit
subset
if (FALSE) { # dir.exists("PROJECT_DIR") count_files("PROJECT_DIR") }
Run the code above in your browser using DataLab