I am trying to use usethis::use_github() to create a repository for a local project.
Following the documentation for the function, I first setup git using usethis::use_git(). This worked fine.
Then, I used usethis::browse_github_pat() to obtain a personal access token (PAT). I then used usethis::edit_r_environ() and added this line: GITHUB_PAT=[40-character PAT].
Finally, I used usethis::use_github(), and got the following message and then error:
Selection: 1
✔ Creating GitHub repository
✔ Adding GitHub remote
✔ Pushing to GitHub and setting remote tracking branch
Error in .local(object, ...) :
Error in 'git2r_push': error authenticating:
I tried looking into the error (i.e., this issue in the git2r repo) but had trouble gaining traction. Any tips on how to get this up and running?