Pull Request Workflow Example
Last updated on 2023-04-04 | Edit this page
We will use the code block and output below to demonstrate one of the new features provided by The Carpentries Workbench: automated feedback about changes to the rendered lesson content that would be made by a pull request.
R
pie(
c(Sky = 78, "Sunny side of pyramid" = 17, "Shady side of pyramid" = 5),
init.angle = 315,
col = c("deepskyblue", "yellow", "yellow3"),
border = FALSE
)

Change the colour of the pyramid
- Fork this repository
- Find the source RMarkdown file for this episode in your fork
- Change the colours of the pyramid parts of the figure above (defined in the
col
parameter ofpie
). Here is a resource for the available colour names in R - Commit the change
- Open a pull request to https://github.com/fishtree-attempt/R-ecology-lesson/ based on the change you made
- Look at the preview of the changes to rendered content. This should appear as a comment in the pull request discussion tab shortly after the PR has been opened.
R
pie(
c(Sky = 78, "Sunny side of pyramid" = 17, "Shady side of pyramid" = 5),
init.angle = 315,
col = c("deepskyblue", "palegreen", "limegreen"),
border = FALSE
)
