mpfr 总是崩溃 R 工作室

问题描述

2021 年 2 月 22 日的第二次更新:

在 RStudio 之外的 R 中运行代码时:

> a <- mpfr(1:10,precBits=100)

 *** caught illegal operation ***
address 0x10daa2bfb,cause 'illegal trap'

Traceback:
 1: mpfr.default(1:10,precBits = 100)
 2: mpfr(1:10,precBits = 100)

Possible actions:
1: abort (with core dump,if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

> sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.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 base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] Rmpfr_0.8-2 gmp_0.6-2  

loaded via a namespace (and not attached):
[1] compiler_4.0.4

2021 年 2 月 22 日更新:

R 更新到 4.0.4,问题依旧。


添加:

> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16

Matrix products: default
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 base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] OBsMD_6.1    Rmpfr_0.8-2  gmp_0.6-2    gtools_3.8.2

loaded via a namespace (and not attached):
[1] compiler_4.0.3 tools_4.0.3  

- 更新:事实证明,相同的代码在我的英特尔 iMac 上运行良好, 但不能在我的 M1 Macbook 上运行。任何可以使其运行的帮助 非常感谢 M1!


当我运行以下代码时,我的 R Studio 在我创建 a 时总是崩溃。同样的事情发生在你身上吗?有什么帮助吗?谢谢!

library(gtools)
library(Rmpfr)
library(OBsMD)

DecimalDigits=10^4

a <- mpfr(c(1:10),precBits = DecimalDigits)

我的 R 版本是 4.0.3。

解决方法

“Mac 上的 R”有一个专门的邮件列表 --> https://stat.ethz.ch/mailman/listinfo/r-sig-mac/

R 核心开发人员在那里,他们和其他人已经在“M1”和相关问题上讨论 R 好几个星期了…… 我对他们对 Rmpfr 的发现以及它是否/何时崩溃 R 感兴趣。 是的,我对 maintainer("Rmpfr")

感兴趣

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...