Description Usage Arguments Value Example Usage NOTE
View source: R/find_consensus_path.R
Identify the recursive path (subdirectories) which most files have in common within a specified directory.
1 | find_consensus_path(top_lvl_dir)
|
top_lvl_dir |
the path to the directory to search within |
a file path, beginning with top_lvl_dir
Identify the consensus path of an renv
project library when other
unrelated and less file-dense directories are present in a given top-level
directory. (I used this on a HPCC to determine where R files were being
installed to when setting up R with renv and conda.)
This is a first-pass implementation and may be slow. The implementation identifies all files recursively below the specified directory and returns the file path shared by the majority of files (currently 80%).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.