I have thus far created 6 different pkgdown
websites for my R packages (e.g., ggstatsplot, kittyR, etc.) and none of them ever had the following issue.
For the first time, running the following command
pkgdown::build_site(
lazy = FALSE,
run_dont_run = TRUE,
seed = 123,
devel = TRUE
)
is not rendering README
badges and I am not sure why since the yaml
I am using is similar to my other packages. I had raised issue on pkgdown
GitHub repo, but it didn't help.
More explicitly, here is what my README
looks like-
And here is what the pkgdown
output looks like-
I get no warnings or errors while building the website., but as can be seen here, the badges are not rendered at all on the homepage. Any ideas on why this might be happening or how to resolve it?
Thanks in advance.
I was able to replicate the issue with the README file you linked. I noticed that adding text (any characters) in backticks before the first heading made the badges re-appear. The reason has to do with how pkgdown
parses the readme to look for badges. As a workaround, you could try adding the word "test" in backticks at line 16 of your README.Rmd file.
This seems to have now been resolved in the dev version of pkgdown
. See the discussion of the issue for more details and consider using <!-- badges: start -->
and <!-- badges: end -->
around the badges section.