I have problems to deploying my github repo to a pkgdown website.
use_pkgdown_github_pages()
build_site()
when I go to: crbiodiversity
has only the title.
i have main and gh-pages branches. Is this setting correct?
I have problems to deploying my github repo to a pkgdown website.
use_pkgdown_github_pages()
build_site()
when I go to: crbiodiversity
has only the title.
i have main and gh-pages branches. Is this setting correct?
build_site()
does not deploy your site, but there are other functions that do, e.g. look at pkgdown::deploy_site_github()
.
People usually deploy pkgdown sites from GitHub Actions, see e.g. actions/examples/pkgdown.yaml at v2 · r-lib/actions · GitHub for an example workflow that deploys to GitHub Pages.
Thank you Gabor.
I couldn't run deploy_site_github(), but I tried deploy_to_branch() and I got this error:
README.Rmd and README.md should be both staged
use 'git commit --no-verify' to override this check
I tried git commit--no--verify but it didn't work.
That seems to come from a pre-commit hook that you set up via usethis? Maybe remove it, IDK if it plays well with pkgdown deployments.
Thank you Gabor.
I did this:
file.remove(".git/hooks/pre-commit")
use_github_action("pkgdown")
use_pkgdown_github_pages()
and it works.
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.