Cannot find gh-pages in GitHub

Dear list members,

I am developing a packages but when using the function:

use_pkgdown_github_pages(), I got the following error. I have a main and gh-pages branches in my GitHub repository.

usethis::use_pkgdown_github_pages()
:heavy_check_mark: Setting active project to '/Users/manuelspinola/Documents/R/R_packages/cacc20212040'
Overwrite pre-existing file '_pkgdown.yml'?

1: Not now
2: Yes
3: Absolutely not

Selection: 2
:heavy_check_mark: Writing '_pkgdown.yml'
• Modify '_pkgdown.yml'
:heavy_check_mark: Activating GitHub Pages for 'ManuelSpinola/cacc20212040'
Error in gh::gh():
! GitHub API error (404): Not Found
:heavy_multiplication_x: URL not found:
https://api.github.com/repos/ManuelSpinola/cacc20212040/pages
:information_source: Read more at
https://docs.github.com/rest/pages#create-a-github-pages-site
Run rlang::last_trace() to see where the error occurred.

Just to eliminate the "easy" solution, does usethis::git_sitrep() indicate any problem with your GitHub credentials?

This topic was automatically closed after 45 days. New replies are no longer allowed.


If you have a query related to it or one of the replies, start a new topic and refer back with a link.