Description Usage Arguments Value See Also
Helper function to find the roots of absolute paths. Tries to put absolute paths into the context of the relative root. For those that this is not possible (because they are not in fact a sub-path of the relative roots), identifies the greatest common denominator for absolute paths as their root. Does not change relative paths but does check whether they do exist if check_existence = TRUE
(the default). To modify relative paths, use iso_shorten_relative_paths prior to calling this function.
1 | iso_find_absolute_path_roots(path, root = ".", check_existence = TRUE)
|
path |
vector of file/folder paths, mixed relative and absolute paths are allowed. |
root |
root directory for the isofiles. Can be relative to the current working directory (e.g. |
check_existence |
whether to check for the existence of the paths |
a data frame with the root directories and paths relative to the root - order of input paths is preserved
Other file system functions:
iso_expand_paths()
,
iso_root_paths()
,
iso_shorten_relative_paths()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.