Learn R Programming

path.chain (version 1.0.0)

as.list: Convert object of type `path_chain` to list

Description

Convert object of type `path_chain` to list

Usage

# S3 method for path_chain
as.list(x, ..., root.name = "root.dir")

Arguments

x

a path_chain object

...

elipsis for API consistency, does nothing

root.name

key for root directory; default: 'root.dir'

Examples

Run this code
tmp <- create_temp_dir("files")
create_sample_dir(tmp)
path.chain <- path_chain(tmp)
as.list(path.chain)

Run the code above in your browser using DataLab