R package Error: package or namespace load failed for ‘reshape2’ in loadNamespace: there is no package called ‘magrittr’
R package Error: package or namespace load failed for ‘reshape2’ in loadNamespace: there is no package called ‘magrittr’
我已经在 R 3.4.3
上安装了 install.packages("reshape2")
但是当我尝试像
那样使用那个库时
library(reshape2)
我收到以下错误
Error: package or namespace load failed for ‘reshape2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘magrittr’
In addition: Warning message:
package ‘reshape2’ was built under R version 3.4.4**
但我只想在 R 3.4.3 上将 reshape2 运行
有人知道如何解决这个问题吗?
已通过以下命令修复:
install.packages("https://cran.r-project.org/src/contrib/Archive/magrittr/magrittr_1.5.tar.gz", repos = NULL, type="source")
我已经在 R 3.4.3
上安装了install.packages("reshape2")
但是当我尝试像
那样使用那个库时library(reshape2)
我收到以下错误
Error: package or namespace load failed for ‘reshape2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘magrittr’ In addition: Warning message: package ‘reshape2’ was built under R version 3.4.4**
但我只想在 R 3.4.3 上将 reshape2 运行
有人知道如何解决这个问题吗?
已通过以下命令修复:
install.packages("https://cran.r-project.org/src/contrib/Archive/magrittr/magrittr_1.5.tar.gz", repos = NULL, type="source")