Skip to content

Robsteranium/bus-factor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculate your Bus Factor
An introduction to GNU-R

This repo contains both the code for calculating your bus factor and the slides from the presentation.

Calculating your Bus Factor

Install R and RStudio

Install R and the RStudio graphical user interface then start RStudio.

Windows users:

Mac users:

Linux users:

Running the script

Once you've got R and Rstudio running, you can open up the two files in the code directory:

  • bus-factor.r provides the functions required to extract and aggregate the authorship data and calculate the bus factor;
  • plot.r provides an example of how to call those functions and plot a chart showing the relative contribution of different authors.

You'll need to point the function at a git repository. You may find R's getwd and setwd commands useful for navigating your file system.

Building the Slides

The slides are build with the Shower Framework with an extra gulp task for converting haml to html.

To rebuild the slides:

cd slides
npm install
gulp prepare

Optionally you can use gulp watch to have them automatically rebuilt every time you save the index.haml or css/extra.css files.

Shower is released under the MIT License.

History

This talk is based upon an article I wrote for Linux Voice Magazine.

License

The code and slides are made available under a Creative Commons Attribution Sharealike License (CC-BY-SA).

About

Calculate your Bus Factor - An introduction to GNU-R

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 68.5%
  • R 10.8%
  • CSS 10.5%
  • JavaScript 10.2%