To add a recipe or fix a typo in the Tidyverse cookbook, use a pull request. Here's how:
- Visit the chapter of the Tidyverse cookbook that you wish to edit.
- Click the icon at the top of the page that looks like this .
- If prompted, click the green "Fork this repository and propose changes" button, which looks like this: This will open an editable copy of the chapter file.
- Make your changes to the file. If you are adding a recipe, try to match the R Markdown formatting that you see in the other recipes. Realize that your text may be edited later; this is not personal---in fact, it is a luxury.
- Scroll down to the Propose file change box, which looks like this: Describe your changes and click "Propose file change."
- When prompted, click the green "Create pull Request button, which looks like this:
- When the box below appears, add this message to your pull request:
CC BY 4.0
. This applies the Creative Commons 4.0 International License to your changes, which is required to maintain a uniform license for the book. Then click "Create Pull Request." Congratulations! You have submitted your pull request. Github will ping me and I'll review your edits.
If I ask you to make changes, you will need to update your pull request. To do this:
- Visit the webpage for your pull request. It will be listed here.
- Click the name of the branch associated with your pull request. It will be in the spot circled below.
- Navigate to the file you need to change.
- Click the edit icon at the top of the file to open an editable version of the file. The icon is circled below.
- Make your changes.
- Scroll down to the Commit changes box, which looks like this: Describe your changes and click "Commit Changes." Congratulations! Your changes will be automatically added to your pull request. They will appear as a second, third, etc. commit on your pull request page: