The function ggplotfrom package ggplot2 gives the following error:
Error in initFields(scales = scales) :
cannot find function \"initRefFields\"
Not particularly satisfying, but I solved this by upgrading R to 2.15.
EDIT: According to @Brian Diggs, this is a known issue in 2.14, fixed in 2.14.1.
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.
Both @Agnus and @Amy seem to have had a problem with their installation/upgrade. Note that in both cases, the version of grid
and tools
listed is 2.14.0
. These two packages ship with base R and should have the same version as R (2.14.2
or 2.15.0
). This indicates to me that the standard packages did not get installed correctly, or something is causing the R installation to look in the wrong place for the core libraries.
I'm not sure what could cause this, or how to fix it short of installing the standard R (Windows, in both cases) distribution (again).