get_chapters.Rd
Given an repository on GitHub, retrieve all the bookdown chapter information for the Github page if it exists. Currently only public repositories are supported.
get_chapters(
repo_name,
git_pat = NULL,
retrieve_learning_obj = FALSE,
retrieve_keywords = TRUE,
verbose = TRUE,
udmodel = NULL
)
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 attempt to retrieve learning objectives?
TRUE/FALSE attempt to retrieve keywords from the chapter?
TRUE/FALSE do you want more progress messages?
A udmodel passed in for keyword determination. Will be obtained using
udpipe::udpipe_download_model(language = "english")
if its not given.
a data frame with the repository with the following columns: data_level, data_path, chapt_name, url, repository name
if (FALSE) {
usethis::create_github_token()
get_chapters("jhudsl/Documentation_and_Usability")
}