path_link {path.chain} | R Documentation |
Creates a link of path chain - a directory or a file
Description
It returns basic package's object: an object representing a link in the chain. Each link has the path_chain class - it can represents a one-element path chain
Usage
path_link(node = NULL, children = NULL)
Arguments
node |
Current node name; character |
children |
list of children - path_chains |
Value
path_chain object
Examples
# 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
[Package path.chain version 0.2.0 Index]