Git Product home page Git Product logo

excuse-me-iris's Introduction

excuse-me-iris

Toy repo used as an example in "Excuse me, do you have a moment to talk about version control?", a soon-to-appear article by Jennifer Bryan. link to come

This is the world's smallest and most boring analysis: we compute Species-specific median for the sepal and petal variables in the iris data. Yawn. It is meant to be boring, so we can just focus on the progression of small changes made to the source file iris.R.

Check out the commit history, which flows from bottom to top. Click on a commit to see the diff. Starting from the very bottom, I walk through the solo Git workflow depicted in panel C here:

I then reset -- literally, look for the commit with "Reset" as message! I then start over again and walk through the collaborative or, at least, branch-oriented, workflow depicted in panel D above.

I've placed two tags, solo-end and collab-end, to mark the end of each example workflow. I didn't use the tag "draft-01", as I did in the article, because you can't really use the same tag twice in the same repo.

Notice how nice iris.md looks when you visit it in the browser! This file can be produced via rmarkdown::render("iris.Rmd") or, equivalently, rmarkdown::render("iris.R"). If you use RStudio, you can do same by clicking on "Knit" in the .Rmd case or the "spiral notebook" button in the .R case.

excuse-me-iris's People

Contributors

jennybc avatar

Stargazers

Anne Thorpe avatar Jas Sohi avatar

Watchers

James Cloos avatar Katrin Leinweber avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.