首页 > 解决方案 > 库中的错误(reshape2):没有名为“reshape2”的包

问题描述

虽然我安装了“reshape2”包,但当我输入library(reshape2). 另外,我在包列表中看不到包。我可以在存储包的目录中看到它。(例如C:/Program Files/R/R-3.5.1/library:)但它没有在 RStudio 中显示为包,我不能使用它。我怎样才能正确安装它?

.libPaths()的是:

"C:/Users/batuh/Documents/R/win-library/3.5"
"C:/Program Files/R/R-3.5.1/library"

当我输入install.packages("reshape2")时,它说:

package ‘reshape2’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘reshape2’

标签: r

解决方案


如果您是第一次在 RStudio 中使用 install.packages("reshape2") 将起作用


推荐阅读