print_directory_tree: Print Directory Tree

Description Usage Arguments Value

View source: R/strings.R

Description

Print Directory Tree

Usage

1
2
3
4
5
6
7
8
print_directory_tree(
  target,
  root = "~",
  child,
  dir_only = FALSE,
  collapse = NULL,
  ...
)

Arguments

target

target directory path, relative to root

root

root directory, default is '~'

child

child files in target; is missing, then list all files

dir_only

whether to display directory children only

collapse

whether to concatenate results as one single string

...

pass to list.files when list all files

Value

Characters, print-friendly directory tree.


dipsaus documentation built on Sept. 6, 2021, 5:08 p.m.