View source: R/subtree_for_treejack.R
all_path_levels | R Documentation |
For a given path a/b/c/d
, all the parent paths a
, a/b
,
a/b/c
and the path itself (a/b/c/d
) are returned.
all_path_levels(path)
path |
one character string representing a file path |
vector of character representing all parent paths and the path
itself as the last element
paths <- kwb.fakin:::all_path_levels("this/is/a/long/path") kwb.file:::to_subdir_matrix(paths)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.