神秘的 R ggplot 错误 - list2env 中的错误(成员,envir = e)

Mysterious R ggplot error - Error in list2env(members, envir = e)

我在使用简单的 ggplot 命令时遇到意外错误,我用尽了所有网络搜索来找到类似的问题。

qplot(hp,mpg,data=mtcars)

Error in list2env(members, envir = e) : 
  names(x) must be a character vector of the same length as x

同样适用于使用 ggplot...

ggplot(mtcars, aes(hp,mpg)) + geom_point()
Error in list2env(members, envir = e) : 
  names(x) must be a character vector of the same length as x

虽然我在一段时间后使用 ggplot,但我过去从未遇到过这个问题。

我是 运行 R 3.1.1,任何帮助将不胜感激!

已更新:sessionInfo

sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252    
LC_MONETARY=English_Australia.1252 LC_NUMERIC=C                       
LC_TIME=English_Australia.1252    


attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

   other attached packages:
[1] ggplot2_2.0.0

loaded via a namespace (and not attached):
[1] digest_0.6.8    htmltools_0.2.6 httpuv_1.3.3    jsonlite_0.9.19 mime_0.4
    R6_2.1.1        Rcpp_0.12.2     tools_3.1.1     xtable_1.8-0   

干杯

当我将 R 更新到 3.2.3 时它有效

这需要一些管理请求(工作机器),但现在已经全部解决了。

sessionInfo()

R version 3.2.3 (2015-12-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252    
LC_MONETARY=English_Australia.1252
[4] LC_NUMERIC=C                       LC_TIME=English_Australia.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] ggplot2_2.0.0

loaded via a namespace (and not attached):
[1] labeling_0.3     colorspace_1.2-6 scales_0.3.0     plyr_1.8.3       
tools_3.2.3      gtable_0.1.2     Rcpp_0.12.2      grid_3.2.3      
[9] munsell_0.4.2