Defunct.
checkoutVersion(repo, localRepoPath = ".", cred = "", ...)
Invisibly returns a git_repository class object, defined in git2r.
Repository address in the format username/repo[/subdir][@ref|#pull]
.
Alternatively, you can specify subdir and/or ref using the respective parameters (see below);
if both is specified, the values in repo take precedence.
Character string. The path into which the git repo should be cloned, fetched, and checked out from.
Character string. Either the name of the environment variable that contains the GitHub PAT or filename of the GitHub private key file.
Additional arguments passed to git2r
functions.
Eliot McIntire and Alex Chubaty