简体   繁体   中英

R package Error: package or namespace load failed for ‘reshape2’ in loadNamespace: there is no package called ‘magrittr’

I have installed install.packages("reshape2") on R 3.4.3

but when I try to use that library like

library(reshape2)

I get the below error

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**

But I want reshape2 to run on R 3.4.3 only

Anyone know how to fix this?

Fixed by the below command:

install.packages("https://cran.r-project.org/src/contrib/Archive/magrittr/magrittr_1.5.tar.gz", repos = NULL, type="source")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM