R/utils.R

Defines functions viz_project_tree is_rproj_folder

is_rproj_folder <- function() {
    rprojroot::is.root_criterion(rprojroot::is_rstudio_project)
}

viz_project_tree <- function(path) {
    withr::with_dir(fs::path_dir(path),
                    {fs::dir_tree(basename(path), all = TRUE)})
}
lwjohnst86/prodigenr documentation built on Aug. 31, 2022, 12:07 p.m.