pkgdown website builds locally but only partial rendering via Github pages

First time poster so any tips would be greatly appreciated! :slight_smile:

I am currently developing a pkgdown site for an R package on a forked repo: GitHub - fontikar/mvabund: mvabund R package

The site builds beautifully locally but when published via Github pages it looks "partially" rendered

I've tried:

  1. Deleting contents of docs/ and rebuilding and pushing to the repo
  2. Unpublishing via Github Pages settings and republishing
  3. Changing the development mode from auto to release in _pkgdown.yml
  4. Setting a Github Action for pkgdown on a seperate branch gh_actions but that is failing during the site building job

Googling is coming up with no success because a) I'm not sure what is the technical term for a "partially rendered" site and b) most help topics pertains to complete deployment failure whereas mine are successful but its looking a bit bare bones!

Any advice would be greatly appreciated.

Thank you in advance! :pray:

Screenshots found here: pkgdown cannot render via GitHub Pages ยท Issue #4 ยท fontikar/mvabund ยท GitHub

Specs:

โ”€ Session info โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
setting value
version R version 4.2.1 (2022-06-23)
os macOS Monterey 12.4
system aarch64, darwin20
ui RStudio
language (EN)
collate en_AU.UTF-8
ctype en_AU.UTF-8
tz Australia/Sydney
date 2022-08-01
rstudio 2022.07.1+554 Spotted Wakerobin (desktop)
pandoc 2.18 @ /Applications/RStudio.app/Contents/MacOS/quarto/bin/tools/ (via rmarkdown)
pkgdown * 2.0.6 2022-07-16 [1] CRAN (R 4.2.1)
devtools * 2.4.4 2022-07-20 [1] CRAN (R 4.2.0)

I find it hard to follow how you generate the pkgdown site, so I can't really fix the configuration you have, sorry.

The approach that we usually use uses a gh-pages branch to deploy to from GHA, via the r-lib/actionsactions. (See examples there.)

usethis::use_pkgdown_github_pages() sets this up properly.

1 Like

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.