Pulls files tree (structure) per repository. Files trees are
then stored as character vectors in files_tree column of output table.
Usage
get_repos_trees(
gitstats,
pattern = NULL,
depth = Inf,
cache = TRUE,
verbose = is_verbose(gitstats),
progress = verbose
)Arguments
- gitstats
A GitStats object.
- pattern
A regular expression. If defined, it pulls structure of files in a repository matching this pattern reaching to the level of directories defined by
depthparameter.- depth
Defines level of directories to reach for files structure from. E.g. if set to
0, it will pull files tree only fromroot, if1L, will take data fromrootdirectory and directories visible inrootdirectory. If left with no argument, will pull files tree down to every directory in a repo.- cache
A logical, if set to
TRUEGitStats will retrieve the last result from its storage.- verbose
A logical,
TRUEby default. IfFALSEmessages and printing output is switched off.- progress
A logical, by default set to
verbosevalue. IfFALSEnocliprogress bar will be displayed.
Examples
if (FALSE) { # \dontrun{
my_gitstats <- create_gitstats() %>%
set_github_host(
token = Sys.getenv("GITHUB_PAT"),
orgs = c("r-world-devs", "openpharma")
)
get_repos_trees(
gitstats = my_gitstats,
pattern = "\\.md"
)
} # }