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