A new GitHub repo will be created via the GitHub API, therefore you must
make a GitHub personal access token (PAT) available. You can either
provide this directly via the auth_token argument or store it in an
environment variable. Use browse_github_pat() to get help obtaining and
storing your PAT. See gh::gh_whoami() for even more detail.
The argument protocol specifies the transport protocol you wish to use for
this repo in the long run. This determines the form of the URL for the
origin remote:
For protocol = "ssh", it is assumed that public and private keys are in the
default locations, ~/.ssh/id_rsa.pub and ~/.ssh/id_rsa, respectively, and
that ssh-agent is configured to manage any associated passphrase.
Alternatively, specify a git2r::cred_ssh_key() object via the credentials
parameter. Read more about ssh setup in Happy Git, especially the troubleshooting section.