[英]Error trying to use the tidyverse library
First day in R, no idea what I'm doing. R 的第一天,不知道我在做什么。 Currently using RStudio on Mac and trying to use the tidyverse library.目前在 Mac 上使用 RStudio 并尝试使用 tidyverse 库。
Installing tidyverse安装 tidyverse
> install.packages("tidyverse")
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/tidyverse_1.3.0.tgz'
Content type 'application/x-gzip' length 433010 bytes (422 KB)
==================================================
downloaded 422 KB
The downloaded binary packages are in
/var/folders/yv/j6pv1xn549bfzg_ycxq2ks500000gp/T//RtmpZaCocT/downloaded_packages
Using tidyverse使用 tidyverse
> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/libs/Rcpp.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/libs/Rcpp.so, 6): Symbol not found: ___cxa_uncaught_exceptions
Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libc++.1.dylib
Expected in: /usr/lib/libc++abi.dylib
in /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libc++.1.dylib
I'm not sure where to get started with this.我不知道从哪里开始。 Any pointers or help would be greatly appreciated任何指示或帮助将不胜感激
You can try to update your packages.您可以尝试更新您的软件包。
> update.packages(repos='http://cran.rstudio.com/', ask=FALSE, checkBuilt=TRUE)
If it does not work you could try to reinstall Rcpp
.如果它不起作用,您可以尝试重新安装Rcpp
。
install.packages("Rcpp")
Good luck!祝你好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.