在运行 R-devel 的 MacOS 上,我之前已将 Apple 的 Accelerate BLAS 和 LAPACK 库符号链接到我的 R 安装。我通过恢复符号链接返回到 R 的默认值,但是,在 RStudio 中(并且仅在 RStudio 中),sessionInfo()显示仍使用 Apple 的 BLAS 库。重新安装 R 和 RStudio 成功地将 LAPACK 返回到 R 的默认设置,但不是 BLAS(见下文)。
我尝试删除所有 R 安装(删除/Library/Frameworks/R.framework/)、RStudio 和~/.rstudio-desktop/(未找到任何.RProfile文件);然后重新启动;然后从 mac.r-project.org 重新安装最新的每晚版本;最后重新安装 RStudio Desktop (RStudio-1.2.5033),没有任何变化。
终端 R 会话:
> sessionInfo()
R Under development (unstable) (2020-01-10 r77651)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.2
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached …Run Code Online (Sandbox Code Playgroud)