get_repo_info.Rd
Given an repository on GitHub, retrieve the information about it from the GitHub API and read it into R.
get_repo_info(repo_name, git_pat = NULL, verbose = FALSE)
The full name of the repo to get bookdown chapters from. e.g. "jhudsl/OTTR_Template"
If private repositories are to be retrieved, a github personal access token needs to be supplied. If none is supplied, then this will attempt to grab from a git pat set in the environment with usethis::create_github_token(). Authorization handled by get_git_auth
TRUE/FALSE do you want more progress messages?
a data frame with the repository with the following columns: data_level, data_path, chapt_name, url, repository name
repo_info <- get_repo_info("jhudsl/Documentation_and_Usability")
#> Error in throw(new_error("gitcreds_not_interactive_error", message = "`gitcreds_set()` only works in interactive sessions")): `gitcreds_set()` only works in interactive sessions