This is handy helper if you want to make gh requests related to the current project.

gh_tree_remote(path = ".")

Arguments

path

Path that is contained within a git repo.

Value

If the repo has a github remote, a list containing username and repo. Otherwise, an error.

Examples

if (interactive()) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf gh_tree_remote() }) # examplesIf