Skip to content

gjahesh/automation

Repository files navigation

STAT547 Homework9 - Automation

Golnaz Jahesh

The project in this repo is created for Homework9 of STAT547 course.

The aim is showing how to create a small-but-automated analytical pipeline using a Makefile AND using rmarkdown::render() on plain R scripts and R Markdown files, without the help of RStudio's buttons.

Demonstration Data : The raw data from the Candy Survey is the survey David Ng and Ben Cohen put together. You can read their article here in 2015 Candy Hierarchy and look at the survey's google spreadsheets.

The flow of the pipeline is as follow:

Suggested workflow is as follow:

  1. Clone this directory.
  2. Start a fresh RStudio session, make sure this directory is the working directory.
  3. Run any scripts you like interactively.
  4. Run any script you like at arm's length, via source() or RStudio Source button.
  5. In a shell, experiment with commands like these to cause scripts to be run: make candy_raw.csv (replace candy_raw.csv with other targets)
    make clean
    make all
  • Note : You could always use Rsrudio -> Build -> Clean all/Build all if you are using the Shell.

About

made for homework9 automation task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages