RMI-PACTA / resources

This is a place to explore and share resources. Check out the "Issues".
https://rmi-pacta.github.io/resources/
17 stars 5 forks source link

Hack to update a package-website without creating a new release #302

Open maurolepore opened 2 years ago

maurolepore commented 2 years ago

To add an article (or any change) to the website of a package without releasing a new version to CRAN you may use this hack:

  1. Checkout the tag of the latest release.
  2. Checkout the new article from the main (or devel) branch.
  3. Run pkgdown::deploy_to_branch()
  4. Don't commit anything (reset and clean as necessary), and move back to your main/devel branch.

Demo: https://youtu.be/uZnjkGwwG3w

See also https://pkgdown.r-lib.org/articles/how-to-update-released-site.html