Skip to contents

A wrapper to safely call gh::gh_tree_remote() and extract the owner ("username").

Usage

GetGHOwner(strPkgRoot = ".")

Arguments

strPkgRoot

(length-1 character) The path to a directory in the package. Will be expanded using gert::git_find().

Value

A length-1 character vector representing the GitHub owner of the repository at strPkgRoot.

Examples

if (FALSE) { # interactive()
  GetGHOwner()
}