check_git_repo.Rd
Given a repository name, check with git ls-remote whether the repository exists and return a TRUE/FALSE
check_git_repo(
repo_name,
git_pat = NULL,
silent = TRUE,
return_repo = FALSE,
verbose = TRUE
)
the name of the repository, e.g. jhudsl/OTTR_Template
A personal access token from GitHub. Only necessary if the repository being checked is a private repository.
TRUE/FALSE of whether the warning from the git ls-remote command should be echoed back if it does fail.
TRUE/FALSE of whether or not the output from git ls-remote should be saved to a file (if the repo exists)
TRUE/FALSE do you want more progress messages?
A TRUE/FALSE whether or not the repository exists. Optionally the output from git ls-remote if return_repo = TRUE.
check_git_repo("jhudsl/OTTR_Template")
#> Checking for remote git repository: jhudsl/OTTR_Template
#> Error in throw(new_error("gitcreds_no_credentials", url = url)): Could not find any credentials