usethis_demos

tutorials and examples for usethis functions

Stars
6

usethis_demos

tutorials and examples for usethis functions

How to edit a pull request locally, part 1

How to edit a pull request locally, part 2

Notes for contributors on rendering .Rmd files:

  1. Update usethis.

  2. Knit how_to1.Rmd with rmarkdown::render("how_to1.Rmd", "github_document").

(Any uncommitted files will be committed during render.)

  1. Delete how_to1.html (I'm not sure how to stop render() from creating html previews.)

  2. Make a change, save and commit. Do NOT commit how_to1.md.

  3. Remember the commit message.

  4. Stage how_to1.md.

  5. git2r::stash().

  6. Switch to master branch.

  7. git2r::stash_pop(). (how_to1.md should appear.)

  8. Edit the commit message in the last paragraph of how_to2.Rmd.

  9. Knit how_to2.Rmd by clicking Knit button. (Any uncommitted files will be committed during render.)

  10. Commit, push changes.

  11. how_to2.html file can be deleted.