list_dirs: List directories

Description Usage Arguments

View source: R/tidyproject.R

Description

Wrapper around list.dirs() but includes maxdepth and pattern arguments and removes full.names argument, always return full names.

Usage

1
2
3
4
5
6
7
list_dirs(
  path = ".",
  full.names = TRUE,
  recursive = FALSE,
  maxdepth = 1,
  pattern
)

Arguments

path

same as list.dirs()

full.names

same as list.dirs()

recursive

same as list.dirs()

maxdepth

integer (default = 1) maximum depth to search

pattern

character (default = missing) regex pattern match on directory name


tsahota/TidyProject documentation built on April 19, 2021, 9:14 p.m.