get_files_structure {GitStats} | R Documentation |
Pulls file structure for a given repository.
get_files_structure(
gitstats_object,
pattern = NULL,
depth = Inf,
cache = TRUE,
verbose = is_verbose(gitstats_object),
progress = verbose
)
gitstats_object |
A GitStats object. |
pattern |
An optional regular expression. If defined, it pulls file structure for a repository matching this pattern. |
depth |
An optional integer. Defines level of directories to retrieve
files from. E.g. if set to |
cache |
A logical, if set to |
verbose |
A logical, |
progress |
A logical, by default set to |
A list of vectors.
## Not run:
my_gitstats <- create_gitstats() %>%
set_github_host(
token = Sys.getenv("GITHUB_PAT"),
orgs = c("r-world-devs")
) %>%
set_gitlab_host(
token = Sys.getenv("GITLAB_PAT_PUBLIC"),
orgs = "mbtests"
)
get_files_structure(
gitstats_obj = my_gitstats,
pattern = "\\.md"
)
## End(Not run)