tutorials and examples for usethis functions
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:
Update usethis
.
Knit how_to1.Rmd
with rmarkdown::render("how_to1.Rmd", "github_document")
.
(Any uncommitted files will be committed during render.)
Delete how_to1.html
(I'm not sure how to stop render()
from creating html
previews.)
Make a change, save and commit. Do NOT commit how_to1.md
.
Remember the commit message.
Stage how_to1.md
.
git2r::stash()
.
Switch to master
branch.
git2r::stash_pop()
. (how_to1.md
should appear.)
Edit the commit message in the last paragraph of how_to2.Rmd
.
Knit how_to2.Rmd
by clicking Knit button. (Any uncommitted files will be committed during render.)
Commit, push changes.
how_to2.html
file can be deleted.