SCasanova / f1dataR

An R package to access Formula 1 Data from the Ergast API and the unofficial F1 data stream via the fastf1 python library.
https://scasanova.github.io/f1dataR/
Other
54 stars 5 forks source link

Pkgdown update #239

Closed SCasanova closed 5 months ago

SCasanova commented 8 months ago

Is the action to update pkgdown working? I'm not sure how it works but it seems it's still on 1.3. Could you direct me to the right place @pbulsink

pbulsink commented 8 months ago

Good Catch. I looked and saw the warning at the bottom of the run here: https://github.com/SCasanova/f1dataR/actions/runs/8226091186. I can find a new pkgdown action and swap it in.

SCasanova commented 8 months ago

Thanks!

pbulsink commented 8 months ago

@SCasanova - so pkgdown builds correctly now, but I think the github pages build job pulls from the wrong branch...

This is unfortunately something that's set in your personal gh settings, so you may be able to sort it out with a bit of digging. I saw this that might help https://stackoverflow.com/a/76960283/3933405. Try set the Github Pages setting to build from the gh-pages branch?

Alternatively, we can modify the pkgdown build job to push to master but that's a bit messier.

SCasanova commented 8 months ago

Hmmm I see. I will dig. Thanks

pbulsink commented 5 months ago

I found this when looking for a different repo. https://fanwangecon.github.io/PkgTestR/articles/ffv_pkgdown_github.html You might have some success with rerunning the following two functions and allowing it to overwrite the .yml files:

usethis::use_github_action("pkgdown")

usethis::use_pkgdown_github_pages()
SCasanova commented 5 months ago

Should be working properly now