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)
  })
}

Try the prodigenr package in your browser

Any scripts or data that you put into this service are public.

prodigenr documentation built on April 3, 2025, 11:07 p.m.