The function ggplotfrom package ggplot2 gives the following error:
Error in initFields(scales = scales) :
cannot find function \"initRefFields\"
When copying libraries during upgrade from 2.14 to 2.14.2 or 2.15.x and doing the upgrade packages story as described in the FAQs, "tools" and "grid" are not updated back to the new version, thus, the old version 2.14 remains. This causes the trouble. A clean install or a re-install of 2.15.x eliminates the problem.