Giter Club home page Giter Club logo

proj-org-r-meetup-20191211's Introduction

High-level overview

  • Reproducible projects are good projects, and are probably designed well. Reproducibility is thus an objective of good projects.
  • Tools such as git, GNU make, renv assist in reproducibility, and induce ideas of intentionality, codification, and explicitness naturally -- just by using them.
  • These ideas are fundamental to good project design, and reproducibility.

Presentation

The presentation is located in the compiled branch. If you clone this repo with no intention to run through the make example and just want to see the outputs, switch to that branch after cloning:

git clone https://github.com/awong234/proj-org-R-meetup-20191211.git
git checkout compiled

Make this presentation!

This presentation is fully reproducible (or ought to be!)

It uses a combination of git, make, and renv to bootstrap packages and create all the outputs defined in the makefile.

There also is a little example analysis to demonstrate the ideas behind make.

  1. Census data were obtained regarding citizen voting proportions for presidential elections ( scripts/import_voting_rate_data.R )
  2. The data are in a .xlsx format, and so some transformations need to be done to get it into a usable flat format (scripts/transform.R).
  3. Some regressions are performed on the data (scripts/analyze.R)
  4. The model results are formatted with brief commentary in R Markdown into a report.
  5. The presentation is compiled from and Rmd file (pres/aw-project-organization-201912.Rmd), depending on a ggplot graphic created in the img/ folder (img/proj-graphic.R)

View the presentation through any browser with the HTML file in pres/aw-project-organization-201912.html once compiled, or directly in the compiled branch.

Usage

From the master branch, run the following:

./projinit.sh
make all

./projinit.sh will make a bunch of folders (if they don't exist), and it will call renv::restore() to get all of the packages in order.

make all will run through the data loading through the transformations, analyses, reports, and finally will build the presentation given at the Cleveland R Meetup (2019-12-11).

proj-org-r-meetup-20191211's People

Contributors

awong234 avatar

Stargazers

John Blischak avatar

Watchers

James Cloos 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.