Defensive R Programming
Dr. Colin Gillespie
Jumping Rivers
Great results, can be achieved with small forces.
Sun Tzu, The Art of War

Filenames often contain multiple words
For example
cluster-analysis.Rload-survival-data.Rplot-residuals.RSimple question. How should words be separated?
analysis clustering.Ranalysis_clustering.Ranalysis-clustering.RTake a second and answer these two questions
Spaces in filenames and directories are a bad idea
file name.R becomes file%20name.Rfile name.R - one spacefile name.R - two spaces is hardThere are a few minor problems with underscores
file_name as a single wordfile won't work\w treats _ as a characterThe same problems don't apply to dashes
Confession time:
Defensive R Programming