ggplot2 Error in initFields

后端 未结 3 1348
半阙折子戏
半阙折子戏 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: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.

提交回复
热议问题