This code used in this book should be applicable to any version of R on any platform, although it was generated and tested using R 2.11.1 for Mac OS X.