Make explicit this is based upon R Cookbook.