Defensive R Programming
Dr. Colin Gillespie
Jumping Rivers
So far we have encountered

So far we have encountered
input/ for data files
So far we have encountered
input/ for data filesR/ for R scripts
So far we have encountered
R/ for R scriptsinput/ for data setsIn this last video, we'll look at
output/ for output generated data files
So far we have encountered
R/ for R scriptsinput/ for data setsIn this last video, we'll look at
output/ for output generated data filesgraphics/ for generated plots
The scripts in
R/ directorycreate the contents of
output/ & graphics/So in theory, we can delete output/ & graphics/ and not cry
This directory just contains
In my R/ directory I have imaginatively named script
graphics.Rthat generates all graphics
Make sure to use relative paths!

This directory contains output
For example
Personally, I typically don't use this directory

Defensive R Programming