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
)
pie chart illusion of a pyramid
Sun arise each and every morning

Change the colour of the pyramid

  1. Fork this repository
  2. Find the source RMarkdown file for this episode in your fork
  3. Change the colours of the pyramid parts of the figure above (defined in the col parameter of pie). Here is a resource for the available colour names in R
  4. Commit the change
  5. Open a pull request to https://github.com/fishtree-attempt/R-ecology-lesson/ based on the change you made
  6. 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
)
pie chart illusion of a pyramid
Sun arise each and every morning