Difficulty using usethis::use_github()

@jmichaelrosenberg There are multiple tasks being performed by usethis::use_github(). One task is creating the new repository on GitHub. This step relies on the gh package and your personal access token. The step succeeded as evidenced by the empty GitHub repo you now have.

The step that failed was attempting to push your local Git changes to GitHub (which is why the GitHub repo is still empty). That step relies on git2r and the system libraries it uses to push and pull from remote repositories like GitHub.

As @jennybryan mentioned, this step can fail for all kinds of reasons. Since you only need to do this step once to get your repository setup, I'd recommend opening a Terminal (in RStudio: Tools -> Terminal -> New Terminal), and typing git push origin master. This will allow you to continue working on your project.

3 Likes