ggplot2 Error in initFields

后端 未结 3 1333
半阙折子戏
半阙折子戏 2021-01-18 10:01

The function ggplotfrom package ggplot2 gives the following error:

Error in initFields(scales = scales) : 
cannot find function \"initRefFields\"


        
相关标签:
3条回答
  • 2021-01-18 10:30

    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.

    0 讨论(0)
  • 2021-01-18 10:36

    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.

    0 讨论(0)
  • 2021-01-18 10:51

    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).

    0 讨论(0)
提交回复
热议问题