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)
  })
}
rostools/prodigenr documentation built on Dec. 15, 2024, 3:21 p.m.