You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Mac系统RStudio加载tidyverse库失败求助(R新手)

Fixing Tidyverse Load Failure on Mac (R 3.6)

Hey there, let's work through this issue together. The error you're seeing with Rcpp.so and the missing ___cxa_uncaught_exceptions symbol is almost always a compatibility problem between your older R version (3.6) and the newer system libraries on your Mac. Here are the most reliable fixes:

R 3.6 is quite outdated, and modern versions of tidyverse (and its dependencies like Rcpp) are built to work with newer Mac system frameworks. Updating R will resolve this library mismatch:

  • Grab the latest Mac installer from the official R site, run it to replace your existing R 3.6 installation.
  • Open RStudio again, then reinstall tidyverse with:
    install.packages("tidyverse")
    
  • Now try loading it again with library(tidyverse)—this should work without issues.

2. Recompile Rcpp from Source (If You Can't Update R)

If you need to stick with R 3.6 for some reason, forcing a source compile of Rcpp will let it adapt to your system's current libraries:

  • First, remove the existing broken Rcpp installation:
    remove.packages("Rcpp")
    
  • Then install Rcpp from source (this might take a minute as it compiles locally):
    install.packages("Rcpp", type = "source")
    
  • Once done, try loading tidyverse again. The source-compiled Rcpp should now match your system's library symbols.

3. Verify System Compatibility

Just a quick check: R 3.6 was designed for Mac OS X Mojave (10.14) or earlier. If you're running a newer system like Big Sur (11.x) or Ventura (13.x), the system-level C++ libraries have changed significantly, which is why the symbol is missing. In this case, updating R is the only long-term fix.

内容的提问来源于stack exchange,提问作者Dave_ed

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.07 09:22:49