get_repos_trees {GitStats} | R Documentation |
Get data on files trees across repositories
Description
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 |
depth |
Defines level of directories to reach for files structure from.
E.g. if set to |
cache |
A logical, if set to |
verbose |
A logical, |
progress |
A logical, by default set to |
Value
A tibble
.
Examples
## Not run:
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"
)
## End(Not run)