Learn R Programming

path.chain (version 1.0.0)

$.path_chain: Access path_chain object

Description

Access path_chain object

Usage

# S3 method for path_chain
$(node, child)

Value

path_chain or character, if path indicates leaf of structure tree

Arguments

node

path_chain

child

nested path_chain name

Examples

Run this code
#' If we want to create our chain manually, we have start from the leaves
level2.b <- path_link("fileA.RData")
level2.a <- path_link("fileB.RData")
level1   <- path_link("data", list(level2.a = level2.a , level2.b = level2.b))
root     <- path_link("files", list(level1))
# Print root path
root$.
# Print file path using chaining
root$data$level2.a

Run the code above in your browser using DataLab