Defensive R Programming
Dr. Colin Gillespie
Jumping Rivers
So far we have encountered
So far we have encountered
input/
for data filesSo far we have encountered
input/
for data filesR/
for R scriptsSo far we have encountered
R/
for R scriptsinput/
for data setsIn this last video, we'll look at
output/
for output generated data filesSo 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 plotsThe 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.R
that 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