简体   繁体   中英

Error trying to use the tidyverse library

First day in R, no idea what I'm doing. Currently using RStudio on Mac and trying to use the tidyverse library.

Installing 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

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

install.packages("Rcpp")

Good luck!

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