Learn R Programming

path.chain (version 1.0.0)

full_path_chain: Full path chain

Description

`full_path_chain` represents another approach to creating chainable paths In contrast to `path_chain`, this functon creates just a list with nested list with full paths as a leaves.

Usage

full_path_chain(path = ".", root.name = ".", naming = basename)

Value

list of lists and character objects

Arguments

path

root path

root.name

naming convention for root directory

naming

naming function

Examples

Run this code
tmp <- create_temp_dir("files")
create_sample_dir(tmp, override = TRUE)
fs::dir_tree(tmp)
chainable.path <- full_path_chain(tmp)
chainable.path

Run the code above in your browser using DataLab