Defensive R Programming
Colin Gillespie
Jumping Rivers
#
# This is a comment
# The above comment isn't very helpful
# Or is it?
# Loop through data sets
for (dataset in datasets) {
# Read in data set
r <- read.csv(dataset)
}
look reasonableThe most common example is header comments at the top of the file
# Last updated: 1967-02-25
# Author: D Law
# Status: No 1
# list of packages used: XXX, YYY
#
or double ##
Defensive R Programming