Defunct.

checkoutVersion(repo, localRepoPath = ".", cred = "", ...)

Arguments

repo

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.

localRepoPath

Character string. The path into which the git repo should be cloned, fetched, and checked out from.

cred

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.

Value

Invisibly returns a git_repository class object, defined in git2r.

Author

Eliot McIntire and Alex Chubaty