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 June 2, 2021, 5:07 p.m.