如何解决由于“ S3方法和矩阵的列数必须匹配”而导致的一堆破包错误

时间:2019-06-01 04:59:53

标签: r

最近,在安装新软件包时,“ S3methods”问题突然出现。尝试按照Error-in-rbind-info-getNamespaceInfo-env-quot-S3methods的建议找到解决方案。 然后,我突然发现许多基本软件包被报告损坏,包括ggplot2。我试图在管理模式下重新安装它。它已成功安装,但无法加载。其他一些甚至无法安装。

  

install.packages(“ ggplot2”)

Installing package into ‘C:/Users/eric1/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.5:
  cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.5/PACKAGES'
trying URL 'https://mran.microsoft.com/snapshot/2018-08-01/bin/windows/contrib/3.5/ggplot2_3.0.0.zip'
Content type 'application/zip' length 3578357 bytes (3.4 MB)
downloaded 3.4 MB

package ‘ggplot2’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\eric1\AppData\Local\Temp\RtmpgLau0F\downloaded_packages
  

库(ggplot2)

Error: package or namespace load failed for ‘ggplot2’ in rbind(info, getNamespaceInfo(env, "S3methods")):
 number of columns of matrices must match (see arg 2)

似乎所有的软件包都不可能在短期内被破坏,除了重新安装R之外还有其他建议吗? 非常感谢。

0 个答案:

没有答案