Skip to content
What's New in R is a weekly email to help you up your R game. Sign up →
R for the Rest of Us Logo

Using Git and GitHub with R

Using Pull Requests to Merge a Branch Into Main

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

Working in the branch you created previously in your local-first project:

  1. Submit a pull request on GitHub

  2. Review your pull request

  3. Merge your code back into the main branch

  4. Confirm that everything worked

Learn More

To learn how to deal with merge conflicts that may come up when you do a pull request, check out this article from GitHub.

If you’re curious to see the original tweet thread where I learned about using pull requests, here it is!

If you're interested in an in-depth look at how to do code reviews, this guide from the team that makes the tidyverse is useful.

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Jonathan Beier

Jonathan Beier • July 13, 2024

The "Learn More" link on code reviews is dead. Do you have another recommendation on this topic?

Jonathan Beier

Jonathan Beier • July 13, 2024

Answering my own question -- The tidyteam moved the guide from a member's personal website to this new domain: https://code-review.tidyverse.org/

David Keyes

David Keyes Founder • July 15, 2024

Perfect, thanks. I updated the link in the Learn More section as well.