当我在R上写库(dplyr)之后出现以下消息:
Error: package or namespace load failed for ‘dplyr’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/anaconda3/lib/R/library/rlang/libs/rlang.so':
dlopen(/anaconda3/lib/R/library/rlang/libs/rlang.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libR.dylib
Referenced from: /anaconda3/lib/R/library/rlang/libs/rlang.so
Reason: image not found
In addition: Warning message:
package ‘dplyr’ was built under R version 3.4.4
使用macOS Mojave 10.14
我使用以下命令在MacBook上安装了dplyr:
install.packages(“ dplyr”, + repos =“ https://cran.r-project.org”, + type =“ mac.binary.el-capitan”)