misadventures in learning R programming