分区:: ListParts崩溃R和Rstudio
无论输入如何,使用分区软件包中的ListParts()立即导致R和Rstudio崩溃。以下是一个可再现的示例,带有错误消息的追溯。我正在运行R 4.2.0 GUI 1.78 High Sierra Build和Rstudio 2022.2.3.492 Macos Monterey 12.2.1。该功能在我同事的PC上运行良好。任何帮助!
> library(partitions)
> myVec <- c(1:3)
> partitions::listParts(length(myVec))
*** caught illegal operation ***
address 0x119c1cbfe, cause 'illegal opcode'
Traceback:
1: as.bigz(1)
2: .fac(sum(x))
3: setparts(x)
4: partitions::listParts(myVec)
Using listParts() from the partitions package immediately causes R and RStudio to crash, no matter the input. Below is a reproducible example and traceback with error message. I'm running R 4.2.0 GUI 1.78 High Sierra build and RStudio 2022.2.3.492 on macOS Monterey 12.2.1. The function runs fine on my coworker's PC. Any help appreciated!
> library(partitions)
> myVec <- c(1:3)
> partitions::listParts(length(myVec))
*** caught illegal operation ***
address 0x119c1cbfe, cause 'illegal opcode'
Traceback:
1: as.bigz(1)
2: .fac(sum(x))
3: setparts(x)
4: partitions::listParts(myVec)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不知道这里发生了什么;该分区软件包仅用于评估列表PARTPARTS(3),这很简单:
[[2]]
[1](1,3)(2)
[[3]]
[1](1,2)(3)
[[4]]
[1](2,3)(1)
[[5]]
[1](1)(2)(3)
错误来自GMP软件包的一部分AS.Bigz()。我建议使用R -Vanilla,并找到一个最少的示例,该示例不使用分区并将其报告给GMP维护者。最好的祝福,罗宾
Not sure what is going on here; the partitions package is only used to evaluate listParts(3), and this is straightforward:
[[2]]
[1] (1,3)(2)
[[3]]
[1] (1,2)(3)
[[4]]
[1] (2,3)(1)
[[5]]
[1] (1)(2)(3)
The error comes from as.bigz(), part of the gmp package. I would suggest using R --vanilla, and finding a minimal example that does not use partitions and reporting it to the gmp maintainer. Best wishes, Robin