count_files: Count files in a project directory

View source: R/helper.R

count_filesR Documentation

Count files in a project directory

Description

Helper function to explore the number of files in a directory, recursively.

Usage

count_files(project_dir, subset = NULL, subset_type = "keep")

Arguments

project_dir

Character. Directory where project files are stored. File paths will be used to extract information and must actually exist.

subset

Character. Text pattern to mark a subset of files/directories to either "keep" or "omit" (see subset_type)

subset_type

Character. Either keep (default) or omit files/directories which match the pattern in subset.

Value

A data frame with number of files in a directory

Examples


count_files("PROJECT_DIR")


ARUtools documentation built on Oct. 9, 2024, 1:07 a.m.